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. To explicitly indicate that a value is to be converted to another type






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






3. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






4. Keyword public is a(n) _________






5. Use 2 characters to represent one






6. Syntax for named constant declaration






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






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






9. The sign you use for references






10. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






11. Sets floating-point values to a fixed decimal format






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






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






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






15. tab






16. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






17. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






18. Used for dynamically allocated variables






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






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






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






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






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






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






25. Repeating a set of instructions a specific number of times is called_________repetition.






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






27. The stream extraction operator






28. The symbol for the binary scope resolution operator






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






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






31. = & | are examples of ____________.






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






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






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






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






36. The sign you use for pointers






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


38. Symbol that denotes an action to be performed






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






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






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






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






43. Operator with two operands






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






45. In inheritance the ____________ is the class the receives the inherited members.






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






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






48. All C++ Variables are_________.






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






50. A variable that holds the address of another variable.