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. An expression in which all operands have the same data type - result will have the same data type as operands






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






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






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






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






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






7. Naming convention for C++ programs






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






9. int namespace include using return examples of ___________






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






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






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






13. The process of placing the elements of an array in order is called ________ the array.






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






15. Names of things that are used in a program - can apply to variables & constants and functions






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






17. When a value of one data type is implicitly (automatically) changed to another data type






18. The sign you use for pointers






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






20. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






21. The _____ causes the contents of another file to be inserted into a program.






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






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






24. All C++ Variables are_________.






25. Class members specified as _________ are accessible anywhere an object of the class is in scope.






26. tab






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






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






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






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






31. Executable version of program






32. The sign you use for references






33. Used for dynamically allocated variables






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






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






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






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






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






39. A filestream variable that represents the default input source






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






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






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






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






44. Default name of executable file






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






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






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






48. Header file that contains commonly performed mathematical functions






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






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