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. Associate an identifier with a memory location






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






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






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






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






6. Creates a copy of a string.






7. This manipulator is used to establish a field width for the value immediately following it.






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






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






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






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






12. Function ________ is used to produce random numbers.






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






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






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






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






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






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






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






20. A function is invoked with a ________.






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






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






23. Symbol that denotes an action to be performed






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






25. A ________ program executes before the compiler's translation phase begins.






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






27. * / % + -






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






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






30. A program that finds and attaches to your program the indicated libraries for compilation






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






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






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






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






35. Keyword public is a(n) _________






36. Operator with two operands






37. The stream insertion operator






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






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






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






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






42. The stream extraction operator






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






44. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.






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






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






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






48. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






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






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







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