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 function that can be used to read character data including whitespace






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






3. The symbol for the binary scope resolution operator






4. directive A statement that starts with a # is called a ____________.






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






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






7. The stream extraction operator






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






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






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






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






12. Most calculations are normally performed by ______ statements.






13. The modulus operator (%) can be used only with __________.






14. For every opening brace in a C++ program there must be a ______________.






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






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






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






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






19. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






20. A filestream variable that represents the default output device






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






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






23. You can declare default values for a function in the ____________________.






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






25. Function ________ is used to produce random numbers.






26. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






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






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






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






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






31. tab






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






33. Symbol that denotes an action to be performed






34. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






35. Sets floating-point values to a fixed decimal format






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






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






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






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






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






41. Whole numbers - no decimals and no commas included






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






43. Allows the programmer to store a value in a variable






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






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






46. Used for dynamically allocated variables






47. The sign you use for pointers






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






49. Nonexecutable statements that are included in a program to provide information about what the program does etc.






50. An expression that has operands with different data types






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