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






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






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






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






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






6. The stream insertion operator






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






8. Allows the programmer to store a value in a variable






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






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






11. A function is invoked with a ________.






12. Used for dynamically allocated variables






13. Used for function calls and local variables






14. Use 2 characters to represent one






15. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






16. * / % + -






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






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






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






20. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






21. The number used to refer to a particular element of an array is called its ________.






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






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






24. An operator that can only be used with int values. result will always be an int.






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






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






27. A human readable file that contains C++ program






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






29. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






30. Operator with only one operand






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






32. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






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






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






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






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






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






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






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






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






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






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






43. The ________ qualifier is used to declare read-only variables.






44. These are data items whose values do not change while the program is running






45. Identifier or expression that is part of the calculation to be performed






46. Repeating a set of instructions a specific number of times is called_________repetition.






47. Syntax for named constant declaration






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






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






50. An expression that has operands with different data types







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