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. Every C++ statement ends with a(n) _________.






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






3. An expression that has operands with different data types






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






5. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






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






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






8. Preprocessor directive syntax






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






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






11. The stream extraction operator






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






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






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






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






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






17. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






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






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






20. Type casting syntax






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






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






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






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






25. The sign you use for references






26. Message displayed to the screen asking user for input; generated with an output statement






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






28. newline






29. Operator with two operands






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






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






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






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






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






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






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






37. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






38. Naming convention for C++ programs






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






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






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






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






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






44. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


45. The storage-class specifiers are mutable - auto - ________ - extern and static.






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






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






48. All C++ Variables are_________.






49. Keyword public is a(n) _________






50. Lists and tables of values can be stored in arrays or __________.