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. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






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






3. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






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






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






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






7. The stream extraction operator






8. All C++ Variables are_________.






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






10. Used for dynamically allocated variables






11. The symbol for the binary scope resolution operator






12. Header file that contains commonly performed mathematical functions






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






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






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






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






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






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






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






20. Symbol that denotes an action to be performed






21. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






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






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






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






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






27. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






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






30. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.






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






32. Sets floating-point values to a fixed decimal format






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






34. Default name of executable file






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






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






37. Every C++ statement ends with a(n) _________.






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






39. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






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






42. Function ________ is used to produce random numbers.






43. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






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






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






46. You can declare default values for a function in the ____________________.






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






48. Type casting syntax






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






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