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 filestream variable that represents the default output device






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






3. A filestream variable that represents the default input source






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






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






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






7. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






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






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






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






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






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






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






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






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






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






17. The symbol for the binary scope resolution operator






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






19. Default name of executable file






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






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






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


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






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






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






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






27. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






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






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






30. Most calculations are normally performed by ______ statements.






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






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






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






34. A function is invoked with a ________.






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






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






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






38. Nonexecutable statements that are included in a program to provide information about what the program does etc.






39. The stream insertion operator






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






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






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






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






44. Symbol that denotes an action to be performed






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






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






47. Naming convention for C++ programs






48. int namespace include using return examples of ___________






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






50. Header file that contains commonly performed mathematical functions







Sorry!:) No result found.

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