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. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






2. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






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






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






5. Associate an identifier with a memory location






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






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






8. Classes can have relationships with other classes. These relationships are called ________.






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






10. Forces the computer to display decimal point and trailing zeroes






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






12. = & | are examples of ____________.






13. Executable version of program






14. Default name of executable file






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






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






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






18. A function is invoked with a ________.






19. To explicitly indicate that a value is to be converted to another type






20. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






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






22. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






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






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






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






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






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






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






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






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






31. Whole numbers - no decimals and no commas included






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






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






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






35. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






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






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






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






39. tab






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






41. Operator with only one operand






42. Used for function calls and local variables






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






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






45. The symbol for the binary scope resolution operator






46. The sign you use for pointers






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






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






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






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