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 storage-class specifiers are mutable - auto - ________ - extern and static.






2. A function ________ enables a single function to be defined to perform a task on many different data types.






3. All C++ Variables are_________.






4. int namespace include using return examples of ___________






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






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






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






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






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






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






11. Identifier or expression that is part of the calculation to be performed






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






13. The stream insertion operator






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






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






16. A pointer is a variable that contains as its value the____________ of another variable.






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






18. Syntax for named constant declaration






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






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






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






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






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






24. Executable version of program






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






26. Header file that contains commonly performed mathematical functions






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






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






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






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






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






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






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






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






35. tab






36. newline






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






38. An expression that has operands with different data types






39. A __________ should be used to declare the size of an array because it makes the program more scalable.






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






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






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






43. Associate an identifier with a memory location






44. A program that finds and attaches to your program the indicated libraries for compilation






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






46. * / % + -






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






48. Type casting syntax






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






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