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. Associate an identifier with a memory location






2. The stream extraction operator






3. A function that calls itself






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






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






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


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






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






9. Used for dynamically allocated variables






10. = & | are examples of ____________.






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






12. A filestream variable that represents the default output device






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






14. Characters used to separate symbols or reserved words or identifiers and statements






15. Function ________ is used to set the random number seed to randomize a program.






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






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






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






19. Every C++ program begins execution at the function _________.






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






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






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






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






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






25. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






26. * / % + -






27. A __________ data member represents class-wide information.






28. The sign you use for pointers






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






30. The symbol for the binary scope resolution operator






31. Used for function calls and local variables






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






33. The ________ program transfers the executable image of a C++ program from disk to memory.






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






35. A filestream variable that represents the default input source






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






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






38. A function ________ enables a single function to be defined to perform a task on many different data types.






39. A variable declared outside any block or function is a ________ variable.






40. A function is invoked with a ________.






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






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






43. The address-of operator. it is used to assign pointers and to print the address of variables.






44. directive A statement that starts with a # is called a ____________.






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






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






47. This manipulator is used to establish a field width for the value immediately following it.






48. Preprocessor directive syntax






49. A member function should be declared static if it does not access __________ class members.






50. Whole numbers - no decimals and no commas included