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. The ________ program transfers the executable image of a C++ program from disk to memory.






2. A filestream variable that represents the default input source






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






4. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.






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






6. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






7. Symbol that denotes an action to be performed






8. Used for function calls and local variables






9. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






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. The only integer that can be assigned directly to a pointer is_____________.






12. Type casting syntax






13. An operator that can only be used with int values. result will always be an int.






14. A C++ statement that makes a decision is ______.






15. The ________ statement in a called function passes the value of an expression back to the calling function.






16. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






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






18. A set of values together with a set of operations






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






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






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






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






23. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






24. * / % + -






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






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






27. The sign you use for pointers






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






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






30. __________ can be used to assign an object of a class to another object of the same class.






31. This manipulator causes the field to be left-justified with padding spaces printed to the right.






32. A type of pointer that can point at objects of any data type.






33. The sign you use for references






34. = & | are examples of ____________.






35. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






36. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






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






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






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






40. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






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






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






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






44. Message displayed to the screen asking user for input; generated with an output statement






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






46. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






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






48. Executable version of program






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






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