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 variable that is known only within the function in which it is defined is called a ________.






3. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






5. Operator with only one operand






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






7. Executable version of program






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






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






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






11. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






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






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






14. All C++ Variables are_________.






15. The only integer that can be assigned directly to a pointer is_____________.






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






17. When a value of one data type is implicitly (automatically) changed to another data type






18. To allow file access in a program you must #include this header file.






19. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






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






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






22. A function that calls itself






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






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






25. The symbol for the binary scope resolution operator






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






27. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






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






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






30. Associate an identifier with a memory location






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






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






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






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






35. The modulus operator (%) can be used only with __________.






36. This is used to mark the end of a complete C++ programming statement.






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






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






39. tab






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






41. Header file that contains commonly performed mathematical functions






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






43. newline






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






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






46. Type casting syntax






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






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






49. Symbol that denotes an action to be performed






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