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






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






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






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






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






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






7. A function that calls itself






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






9. An expression in which all operands have the same data type - result will have the same data type as operands






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






11. Syntax for named constant declaration






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






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






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






15. A member function should be declared static if it does not access __________ class members.






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






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






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






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






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






21. Naming convention for C++ programs






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






23. Sets floating-point values to a fixed decimal format






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


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






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






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






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






29. Preprocessor directive syntax






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






31. The stream insertion operator






32. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






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






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






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






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






37. Use 2 characters to represent one






38. A filestream variable that represents the default input source






39. This manipulator causes the field to be left-justified with padding spaces printed to the right.






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






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






42. Symbol that denotes an action to be performed






43. A function is invoked with a ________.






44. Keyword public is a(n) _________






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






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






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






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






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






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






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