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. * / % + -






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






3. The stream insertion operator






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






5. Use 2 characters to represent one






6. A memory location with a name and data type - its content may be changed during program execution






7. The _____ causes the contents of another file to be inserted into a program.






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






9. An array that uses two subscripts is referred to as a(n) _________ array.






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






11. The ________ enables access to a global variable with the same name as a variable in the current scope.






12. A file must be ________ before data can be written to or read from it.






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






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






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






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






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






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






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






20. An expression that has operands with different data types






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






22. Whole numbers - no decimals and no commas included






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






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






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






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






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






28. Grammar rules of the language; compiler will try to identify and locate syntax errors






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


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






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






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






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






34. Naming convention for C++ programs






35. The sign you use for pointers






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






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






38. Operator with two operands






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






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






41. The sign you use for references






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






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






44. The symbol for the binary scope resolution operator






45. Type casting syntax






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






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






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






49. int namespace include using return examples of ___________






50. Used for function calls and local variables