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






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






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






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






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






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






7. Lists and tables of values can be stored in arrays or __________.






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






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






10. Operator with only one operand






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






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






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






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






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






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






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






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






19. tab






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






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






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






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






24. Whole numbers - no decimals and no commas included






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






26. Used for function calls and local variables






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






28. The address-of operator. it is used to assign pointers and to print the address of variables.






29. Used for dynamically allocated variables






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






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






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






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






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






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






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






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






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






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






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






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






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






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






44. A constant object must be __________; it cannot be modified after it is created.






45. Executable version of program






46. Smallest individual unit of a programming language - special symbols or word symbols or identifiers






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






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






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






50. The symbol for the binary scope resolution operator