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. An array that uses two subscripts is referred to as a(n) _________ array.






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






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






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






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






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






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






8. A function that calls itself






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






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






11. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






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






13. A pointer is a variable that contains as its value the____________ of another variable.






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






15. int namespace include using return examples of ___________






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






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






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






19. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






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






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






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






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






24. Header file that contains commonly performed mathematical functions






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






26. Member objects are constructed __________ their enclosing class object.






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






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






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






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






31. The symbol for the binary scope resolution operator






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






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






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






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






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


37. Initializers __________ must be used to initialize constant members of a class.






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






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






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






41. A C++ statement that makes a decision is ______.






42. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






43. Creates a copy of a string.






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






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






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






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






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






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






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






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