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. The storage-class specifiers are mutable - auto - ________ - extern and static.






2. Returns the length of a string excluding the null terminator.






3. An expression that has operands with different data types






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






5. All C++ Variables are_________.






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






7. Most calculations are normally performed by ______ statements.






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






9. data types that refer to numbers with decimals






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






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






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






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






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






15. Words that are used for special purposes in a program






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






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






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






19. Symbol that denotes an action to be performed






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






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






22. A file must be ________ before data can be written to or read from it.






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






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






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






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






27. A __________ should be used to declare the size of an array because it makes the program more scalable.






28. The ________ enables access to a global variable with the same name as a variable in the current scope.






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






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






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






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






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






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






35. The stream extraction operator






36. Syntax for named constant declaration






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






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






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






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






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






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






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






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






45. The idea that you can call the same function and the output will depend on the type of object you're using.






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






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






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






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






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






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests