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 variable declared outside any block or function is a ________ variable.






2. All C++ Variables are_________.






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






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






5. tab






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






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






8. Operator with two operands






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






10. Default name of executable file






11. data types that refer to numbers with decimals






12. A filestream variable that represents the default output device






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






14. Associate an identifier with a memory location






15. The ________ program transfers the executable image of a C++ program from disk to memory.






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






17. Most calculations are normally performed by ______ statements.






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






19. You can declare default values for a function in the ____________________.






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






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






22. An expression that has operands with different data types






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






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






25. Grammar rules of the language; compiler will try to identify and locate syntax errors






26. Creates a copy of a string.






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






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






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






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






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






32. The sign you use for pointers






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






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






35. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






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






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






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


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






40. Program components in C++ are called functions and ________.






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






42. Header file that contains commonly performed mathematical functions






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






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






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






46. Used for dynamically allocated variables






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






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






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






50. * / % + -