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. You can declare default values for a function in the ____________________.






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






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






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






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






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






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






8. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






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






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


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






12. You must have a ___________ for every variable you intend to use in a program






13. The sign you use for references






14. Most calculations are normally performed by ______ statements.






15. Initializers __________ must be used to initialize constant members of a class.






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






17. The stream extraction operator






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






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






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






21. An expression that has operands with different data types






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






23. data types that refer to numbers with decimals






24. This manipulator is used to establish a field width for the value immediately following it.






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






26. Keyword public is a(n) _________






27. The ________ statement in a called function passes the value of an expression back to the calling function.






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






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






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






31. Operator with only one operand






32. The process of determining if an array contains a particular key value is called _________ the array.






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






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






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






36. Default name of executable file






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






38. A type of pointer that can point at objects of any data type.






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






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






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






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






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






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






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






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






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






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






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






50. Preprocessor directive syntax