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 type of pointer that can point at objects of any data type.






2. int namespace include using return examples of ___________






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






4. In inheritance the ____________ is the class that supplies the inherited members.






5. Keyword public is a(n) _________






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






7. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






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






9. Operator with only one operand






10. Preprocessor directive syntax






11. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






12. Compares two strings and returns 0 if they are equal.






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






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






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






16. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






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






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


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






20. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






21. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






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






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






24. Default name of executable file






25. Operator with two operands






26. Whole numbers - no decimals and no commas included






27. A function that calls itself






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






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






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






31. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






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






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






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






35. To write data to a file you define an object of which one of the following






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






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






38. An expression that has operands with different data types






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






40. The symbol for the binary scope resolution operator






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






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






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






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






45. The stream insertion operator






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






47. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






48. The stream extraction operator






49. Syntax for named constant declaration






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