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






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






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






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






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






6. Default name of executable file






7. Operator with two operands






8. The symbol for the binary scope resolution operator






9. Allows the programmer to store a value in a variable






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






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






12. tab






13. Characters used to separate symbols or reserved words or identifiers and statements






14. Classes can have relationships with other classes. These relationships are called ________.






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






16. int namespace include using return examples of ___________






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






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






19. A ________ program executes before the compiler's translation phase begins.






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






21. The sign you use for pointers






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






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






24. Operator with only one operand






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






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






27. Executable version of program






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






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






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






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






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






33. * / % + -






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






35. = & | are examples of ____________.






36. If a member initializer is not provided for a member object of a class the object's __________ is called.






37. A filestream variable that represents the default output device






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






39. Symbol that denotes an action to be performed






40. A C++ statement that makes a decision is ______.






41. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






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






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






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






45. data types that refer to numbers with decimals






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






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






48. Program components in C++ are called functions and ________.






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






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