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 process of determining if an array contains a particular key value is called _________ the array.






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






3. The symbol for the binary scope resolution operator






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






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






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






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






8. Most calculations are normally performed by ______ statements.






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






10. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






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






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






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






14. Syntax for named constant declaration






15. data types that refer to numbers with decimals






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






17. These are data items whose values do not change while the program is running






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






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






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






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






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






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






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






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






26. Program components in C++ are called functions and ________.






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






28. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






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






30. Keyword public is a(n) _________






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






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






33. newline






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






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






36. A function is invoked with a ________.






37. Default name of executable file






38. Associate an identifier with a memory location






39. A __________ should be used to declare the size of an array because it makes the program more scalable.






40. Executable version of program






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






42. * / % + -






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






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






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






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






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






48. Grammar rules of the language; compiler will try to identify and locate syntax errors






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






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







Sorry!:) No result found.

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