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. A function that calls itself






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






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






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






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






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






7. Function ________ is used to produce random numbers.






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






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






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






11. Default name of executable file






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






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






14. Creates a copy of a string.






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






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






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






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






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






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






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






22. Symbol that denotes an action to be performed






23. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






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






25. This is used to mark the end of a complete C++ programming statement.






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






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






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






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






30. Operator with two operands






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






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






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






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






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






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






37. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






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






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






41. A filestream variable that represents the default output device






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






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






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






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






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






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






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






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






50. This manipulator causes the field to be left-justified with padding spaces printed to the right.