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. These are data items whose values do not change while the program is running






2. A function that calls itself






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






4. Creates a copy of a string.






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






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






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






8. Function ________ is used to produce random numbers.






9. In inheritance the ____________ is the class that supplies the inherited members.






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






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






12. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






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






14. Header file that contains commonly performed mathematical functions






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






16. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






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


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






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






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






22. Executable version of program






23. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.






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






25. Default name of executable file






26. Most calculations are normally performed by ______ statements.






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






28. A function that can be used to read character data including whitespace






29. The process of placing the elements of an array in order is called ________ the array.






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






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






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






33. The ________ enables access to a global variable with the same name as a variable in the current scope.






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






35. Symbol that denotes an action to be performed






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






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






38. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






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






40. The symbol for the binary scope resolution operator






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






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






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






44. C++ programs are normally typed into a computer using a(n) ________ program.






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






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






47. The sign you use for references






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






49. Type casting syntax






50. A file must be ________ before data can be written to or read from it.