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


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






3. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






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






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






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






8. Operator with only one operand






9. The sign you use for references






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






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






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






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






14. Lists and tables of values can be stored in arrays or __________.






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






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






17. The __________ operator reclaims memory previously allocated by new.






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






19. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






20. Executable version of program






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






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






23. data types that refer to numbers with decimals






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






25. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






26. directive A statement that starts with a # is called a ____________.






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






28. The stream insertion operator






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






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






31. * / % + -






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






33. A memory location with a name and data type - its content may be changed during program execution






34. Used for dynamically allocated variables






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






36. Keyword public is a(n) _________






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






38. All C++ Variables are_________.






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






40. A human readable file that contains C++ program






41. Syntax for named constant declaration






42. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






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






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






45. Function ________ is used to set the random number seed to randomize a program.






46. Operator with two operands






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






48. A function is invoked with a ________.






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. The size & shape & color and weight of an object are considered