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






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






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. Header file that contains commonly performed mathematical functions






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






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






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






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






9. Two slash marks ( // ) indicate __________ of a comment






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






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






12. A filestream variable that represents the default input source






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






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






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






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






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






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






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






20. The sign you use for references






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






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






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






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






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






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






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






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






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






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






31. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






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






33. Default name of executable file






34. Type casting syntax






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






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






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






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






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






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






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






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






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






44. The stream insertion operator






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






46. Use 2 characters to represent one






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






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






49. Lists and tables of values can be stored in arrays or __________.






50. An expression in which all operands have the same data type - result will have the same data type as operands