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. Grammar rules of the language; compiler will try to identify and locate syntax errors






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






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






4. Used to qualify hidden names so that they can be used.






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






6. Executable version of program






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






8. A function ________ enables a single function to be defined to perform a task on many different data types.






9. The ________ statement in a called function passes the value of an expression back to the calling function.






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






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






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






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






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






15. The elements of an array are related by the fact that they have the same name and ___________.






16. Symbol that denotes an action to be performed






17. All C++ Variables are_________.






18. A function that calls itself






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






20. Most calculations are normally performed by ______ statements.






21. newline






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






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






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






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






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






27. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






28. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






29. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






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






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






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






33. Used for dynamically allocated variables






34. Forces the computer to display decimal point and trailing zeroes






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






36. Every C++ program begins execution at the function _________.






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






38. A filestream variable that represents the default output device






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






40. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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






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






44. A filestream variable that represents the default input source






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






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






47. Default name of executable file






48. The __________ operator reclaims memory previously allocated by new.






49. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


50. An expression that has operands with different data types







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