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. The idea that you can call the same function and the output will depend on the type of object you're using.






2. A constant object must be __________; it cannot be modified after it is created.






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






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






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






6. newline






7. A function is invoked with a ________.






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






9. All ______ must be declared before they are used.






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






11. If a member initializer is not provided for a member object of a class the object's __________ is called.






12. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






13. The stream extraction operator






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






15. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






17. A set of values together with a set of operations






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. The sign you use for pointers






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






21. Function ________ is used to produce random numbers.






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






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






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






25. Whole numbers - no decimals and no commas included






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. A pointer is a variable that contains as its value the____________ of another variable.






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






29. This is used to mark the end of a complete C++ programming statement.






30. Used for dynamically allocated variables






31. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






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






33. A filestream variable that represents the default input source






34. * / % + -






35. A function that calls itself






36. int namespace include using return examples of ___________






37. Symbol that denotes an action to be performed






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






39. The stream insertion operator






40. Associate an identifier with a memory location






41. Operator with two operands






42. Most calculations are normally performed by ______ statements.






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






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






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






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






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






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






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






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







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