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. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






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






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






4. Keyword public is a(n) _________






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






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






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






8. int namespace include using return examples of ___________






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






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






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






12. An operator that can only be used with int values. result will always be an int.






13. Associate an identifier with a memory location






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






15. These are data items whose values do not change while the program is running






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






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






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






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






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






21. Header file that contains commonly performed mathematical functions






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






23. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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






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






27. tab






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






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






30. Operator with only one operand






31. Executable version of program






32. Creates a copy of a string.






33. The ________ program combines the output of the compiler with various library functions to produce an executable image.






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






35. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






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






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






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






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






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






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


42. The address-of operator. it is used to assign pointers and to print the address of variables.






43. Default name of executable file






44. An expression that has operands with different data types






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






46. The stream insertion operator






47. A function that calls itself






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






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






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