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. Repeating a set of instructions a specific number of times is called_________repetition.






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






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






4. The stream extraction operator






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






6. Default name of executable file






7. Used for function calls and local variables






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






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






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






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






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






13. Symbol that denotes an action to be performed






14. The sign you use for references






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






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






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






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






19. Class members specified as _________ are accessible anywhere an object of the class is in scope.






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






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






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


23. Executable version of program






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






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






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






27. Use 2 characters to represent one






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






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






30. A function that can be used to read character data including whitespace






31. For every opening brace in a C++ program there must be a ______________.






32. Every C++ statement ends with a(n) _________.






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






34. The only integer that can be assigned directly to a pointer is_____________.






35. Operator with two operands






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






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






38. Header file that contains commonly performed mathematical functions






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






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






41. * / % + -






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






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






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






45. The stream insertion operator






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






47. tab






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






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






50. Syntax for named constant declaration







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