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. The idea that you can call the same function and the output will depend on the type of object you're using.






2. You must have a ___________ for every variable you intend to use in a program






3. Operator with two operands






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






5. To explicitly indicate that a value is to be converted to another type






6. The __________ operator reclaims memory previously allocated by new.






7. All C++ Variables are_________.






8. Symbol that denotes an action to be performed






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






10. A member function should be declared static if it does not access __________ class members.






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






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






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






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






15. The sign you use for pointers






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






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






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






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






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






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






22. Associate an identifier with a memory location






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






24. tab






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






26. The process of determining if an array contains a particular key value is called _________ the array.






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. Every C++ statement ends with a(n) _________.






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






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






31. = & | are examples of ____________.






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






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






34. Creates a copy of a string.






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






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






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






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






39. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






40. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






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






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






43. Header file that contains commonly performed mathematical functions






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






45. Default name of executable file






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






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






48. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






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






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