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. Executable version of program






2. int namespace include using return examples of ___________






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






4. Function ________ is used to produce random numbers.






5. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






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






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






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






9. Naming convention for C++ programs






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






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






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






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






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






15. Used for function calls and local variables






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






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






18. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.






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






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






21. = & | are examples of ____________.






22. Most calculations are normally performed by ______ statements.






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






24. The elements of an array are related by the fact that they have the same name and ___________.






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






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






27. Associate an identifier with a memory location






28. All ______ must be declared before they are used.






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






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






31. Allows the programmer to store a value in a variable






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






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






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






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






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






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






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






39. All C++ Variables are_________.






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






41. Keyword public is a(n) _________






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






43. Type casting syntax






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






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






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






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






48. Syntax for named constant declaration






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






50. Used for dynamically allocated variables