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. C++ programs are normally typed into a computer using a(n) ________ program.






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






3. You must have a ___________ for every variable you intend to use in a program






4. A type of pointer that can point at objects of any data type.






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






6. A filestream variable that represents the default output device






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






8. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






9. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






10. A filestream variable that represents the default input source






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






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






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






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






15. Symbol that denotes an action to be performed






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






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






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






19. data types that refer to numbers with decimals






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






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






22. The storage-class specifiers are mutable - auto - ________ - extern and static.






23. Syntax for named constant declaration






24. Creates a copy of a string.






25. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.






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






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






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






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






30. The three values that can be used to initialize a pointer are 0 - __________ and an address.






31. Function ________ is used to produce random numbers.






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






33. Default name of executable file






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






35. Message displayed to the screen asking user for input; generated with an output statement






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






37. Header file that contains commonly performed mathematical functions






38. A set of values together with a set of operations






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






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






41. Executable version of program






42. The symbol for the binary scope resolution operator






43. In inheritance the ____________ is the class the receives the inherited members.






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






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






46. The stream extraction operator






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






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






49. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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







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