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. Forces the computer to display decimal point and trailing zeroes






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






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






4. Naming convention for C++ programs






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






6. The number used to refer to a particular element of an array is called its ________.






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






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






9. newline






10. Used to qualify hidden names so that they can be used.






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






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






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






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






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






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






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






18. A filestream variable that represents the default input source






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






20. The sign you use for pointers






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






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






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






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






25. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.






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






27. Symbol that denotes an action to be performed






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






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






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






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






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






33. int namespace include using return examples of ___________






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






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






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






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






38. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






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






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






41. A filestream variable that represents the default output device






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






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






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






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






46. A variable that is known only within the function in which it is defined is called a ________.






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






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






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






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