Test your basic knowledge |

C++ Programming Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






2. Member objects are constructed __________ their enclosing class object.






3. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






4. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






5. The elements of an array are related by the fact that they have the same name and ___________.






6. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






7. The process of analyzing and designing a system from an object-oriented point of view is called ________.






8. Operator with only one operand






9. The __________ operator reclaims memory previously allocated by new.






10. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


11. A human readable file that contains C++ program






12. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






13. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






14. A __________ should be used to declare the size of an array because it makes the program more scalable.






15. Names of things that are used in a program - can apply to variables & constants and functions






16. All ______ must be declared before they are used.






17. Allows the programmer to store a value in a variable






18. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






19. You must have a ___________ for every variable you intend to use in a program






20. The process of determining if an array contains a particular key value is called _________ the array.






21. Lists and tables of values can be stored in arrays or __________.






22. A program that finds and attaches to your program the indicated libraries for compilation






23. A filestream variable that represents the default output device






24. Grammar rules of the language; compiler will try to identify and locate syntax errors






25. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






26. The symbol for the binary scope resolution operator






27. tab






28. A variable that holds the address of another variable.






29. You can declare default values for a function in the ____________________.






30. Type casting syntax






31. Initializers __________ must be used to initialize constant members of a class.






32. The stream extraction operator






33. Every C++ statement ends with a(n) _________.






34. Default name of executable file






35. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






36. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






37. These are data items whose values do not change while the program is running






38. An array that uses two subscripts is referred to as a(n) _________ array.






39. The ________ program combines the output of the compiler with various library functions to produce an executable image.






40. Identifier or expression that is part of the calculation to be performed






41. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.






42. A filestream variable that represents the default input source






43. In inheritance the ____________ is the class the receives the inherited members.






44. A function is invoked with a ________.






45. Returns the length of a string excluding the null terminator.






46. * / % + -






47. A sequence of operands and operators that describe a calculation to be performed






48. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






49. The sign you use for pointers






50. The size & shape & color and weight of an object are considered