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. The __________ operator reclaims memory previously allocated by new.






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






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






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






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






6. A constant object must be __________; it cannot be modified after it is created.






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






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






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






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






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






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






13. A filestream variable that represents the default output device






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






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






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






17. The address-of operator. it is used to assign pointers and to print the address of variables.






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






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






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






21. Associate an identifier with a memory location






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






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






24. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






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






26. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.






27. data types that refer to numbers with decimals






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






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






30. This manipulator causes the field to be left-justified with padding spaces printed to the right.






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






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






33. A memory location with a name and data type - its content may be changed during program execution






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






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






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






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






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






39. The symbol for the binary scope resolution operator






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






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






42. = & | are examples of ____________.






43. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






44. A function that calls itself






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






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






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






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






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






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






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests