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. In inheritance the ____________ is the class that supplies the inherited members.






2. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






3. The stream insertion operator






4. A constant object must be __________; it cannot be modified after it is created.






5. Nonexecutable statements that are included in a program to provide information about what the program does etc.






6. int namespace include using return examples of ___________






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






8. The _________ begins the body of every function and the _________ ends the body of every function.






9. To explicitly indicate that a value is to be converted to another type






10. An expression that has operands with different data types






11. Use 2 characters to represent one






12. The _____ causes the contents of another file to be inserted into a program.






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






14. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






15. A function is invoked with a ________.






16. The storage-class specifiers are mutable - auto - ________ - extern and static.






17. Creates a copy of a string.






18. The three values that can be used to initialize a pointer are 0 - __________ and an address.






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






20. The ________ qualifier is used to declare read-only variables.






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






22. The stream extraction operator






23. Function ________ is used to produce random numbers.






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






25. If a member initializer is not provided for a member object of a class the object's __________ is called.






26. Header file that contains commonly performed mathematical functions






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






28. Keyword public is a(n) _________






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






30. For every opening brace in a C++ program there must be a ______________.






31. 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


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






33. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






34. An expression in which all operands have the same data type - result will have the same data type as operands






35. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






36. A memory location with a name and data type - its content may be changed during program execution






37. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






38. Words that are used for special purposes in a program






39. Sets floating-point values to a fixed decimal format






40. A ________ program executes before the compiler's translation phase begins.






41. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






42. The idea that you can call the same function and the output will depend on the type of object you're using.






43. Repeating a set of instructions a specific number of times is called_________repetition.






44. Two slash marks ( // ) indicate __________ of a comment






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






46. Smallest individual unit of a programming language - special symbols or word symbols or identifiers






47. A pointer is a variable that contains as its value the____________ of another variable.






48. Executable version of program






49. Naming convention for C++ programs






50. Class members specified as _________ are accessible only to member functions of the class and friends of the class.