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 constant object must be __________; it cannot be modified after it is created.






2. The symbol for the binary scope resolution operator






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






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






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






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






7. Keyword public is a(n) _________






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






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






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






11. An operator that can only be used with int values. result will always be an int.






12. The process of analyzing and designing a system from an object-oriented point of view is called ________.






13. Type casting syntax






14. The sign you use for pointers






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






16. This manipulator is used to establish a field width for the value immediately following it.






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






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






19. int namespace include using return examples of ___________






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






21. The stream extraction operator






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






23. data types that refer to numbers with decimals






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






25. A function is invoked with a ________.






26. Use 2 characters to represent one






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






28. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






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






30. Used for dynamically allocated variables






31. Whole numbers - no decimals and no commas included






32. A function that calls itself






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






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






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






36. The sign you use for references






37. Preprocessor directive syntax






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






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






40. Default name of executable file






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






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






43. Most calculations are normally performed by ______ statements.






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






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






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






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






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






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






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






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