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 pointer is a variable that contains as its value the____________ of another variable.






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






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






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






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






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






7. A function is invoked with a ________.






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






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






10. Symbol that denotes an action to be performed






11. Returns the length of a string excluding the null terminator.






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






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






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






15. Used for function calls and local variables






16. The sign you use for references






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






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






19. Type casting syntax






20. = & | are examples of ____________.






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






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






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






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






25. Preprocessor directive syntax






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






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






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






29. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






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






31. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






32. Operator with only one operand






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






34. Most calculations are normally performed by ______ statements.






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






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






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






38. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.






39. Associate an identifier with a memory location






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






41. A function that calls itself






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






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






44. int namespace include using return examples of ___________






45. Names of things that are used in a program - can apply to variables & constants and functions






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






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. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






49. The only integer that can be assigned directly to a pointer is_____________.






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