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. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






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






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






4. A variable that is known only within the function in which it is defined is called a ________.






5. A filestream variable that represents the default output device






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






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






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






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






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






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






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






13. data types that refer to numbers with decimals






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






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






16. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






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






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






19. Function ________ is used to produce random numbers.






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






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






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






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






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






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






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






27. Most calculations are normally performed by ______ statements.






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






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






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






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






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






33. Used for dynamically allocated variables






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






35. Whole numbers - no decimals and no commas included






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






37. An expression that has operands with different data types






38. The stream extraction operator






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






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






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






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






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






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






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






46. Symbol that denotes an action to be performed






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






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






49. newline






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







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