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. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






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






3. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






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






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






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






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






8. Default name of executable file






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






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






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






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






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






14. To write data to a file you define an object of which one of the following






15. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






16. Associate an identifier with a memory location






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






18. The number used to refer to a particular element of an array is called its ________.






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






20. The stream extraction operator






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






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






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






24. A pointer is a variable that contains as its value the____________ of another variable.






25. Preprocessor directive syntax






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






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






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






29. The ________ qualifier is used to declare read-only variables.






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






31. Naming convention for C++ programs






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






33. = & | are examples of ____________.






34. The stream insertion operator






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






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






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






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






39. A function is invoked with a ________.






40. Whole numbers - no decimals and no commas included






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






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






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






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






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






46. A function that calls itself






47. Operator with two operands






48. Member objects are constructed __________ their enclosing class object.






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






50. data types that refer to numbers with decimals