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. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






2. A __________ data member represents class-wide information.






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






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






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






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






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






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






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






10. tab






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






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






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






14. When a value of one data type is implicitly (automatically) changed to another data type






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






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






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






18. The sign you use for pointers






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






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






21. data types that refer to numbers with decimals






22. Executable version of program






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






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






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






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






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






28. The stream extraction operator






29. Operator with only one operand






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






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






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






33. Naming convention for C++ programs






34. A function that can be used to read character data including whitespace






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






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






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






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






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






40. Forces the computer to display decimal point and trailing zeroes






41. C++ programs are normally typed into a computer using a(n) ________ program.






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






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






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






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






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






47. An expression that has operands with different data types






48. * / % + -






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






50. A filestream variable that represents the default output device