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. Function ________ is used to set the random number seed to randomize a program.






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






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






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






5. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






6. To write data to a file you define an object of which one of the following






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






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






9. The modulus operator (%) can be used only with __________.






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






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






12. Classes can have relationships with other classes. These relationships are called ________.






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


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






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






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






17. The process of analyzing and designing a system from an object-oriented point of view is called ________.






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






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






20. The only integer that can be assigned directly to a pointer is_____________.






21. The symbol for the binary scope resolution operator






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






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






24. tab






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






26. The three values that can be used to initialize a pointer are 0 - __________ and an address.






27. To allow file access in a program you must #include this header file.






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






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






30. Keyword public is a(n) _________






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






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






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






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






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






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






37. Allows the programmer to store a value in a variable






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






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






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






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






42. * / % + -






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






44. Used for function calls and local variables






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






46. Used for dynamically allocated variables






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






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






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






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