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 variable that holds the address of another variable.






2. The stream insertion operator






3. Naming convention for C++ programs






4. Two slash marks ( // ) indicate __________ of a comment






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






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






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






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






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






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






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






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






13. int namespace include using return examples of ___________






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






15. Operator with two operands






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






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






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






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






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






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






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






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






24. Used for dynamically allocated variables






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






26. Header file that contains commonly performed mathematical functions






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


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






29. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






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






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






32. Whole numbers - no decimals and no commas included






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






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






35. * / % + -






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






37. Operator with only one operand






38. The stream extraction operator






39. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






40. The sign you use for references






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






42. Used for function calls and local variables






43. All ______ must be declared before they are used.






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






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






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






47. Use 2 characters to represent one






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






49. C++ programs are normally typed into a computer using a(n) ________ program.






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







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