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. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






2. Whole numbers - no decimals and no commas included






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






4. Used for function calls and local variables






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






6. Member objects are constructed __________ their enclosing class object.






7. The sign you use for pointers






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


9. C++ programs are normally typed into a computer using a(n) ________ program.






10. Forces the computer to display decimal point and trailing zeroes






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






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






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






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






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






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






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






18. An expression in which all operands have the same data type - result will have the same data type as operands






19. Classes can have relationships with other classes. These relationships are called ________.






20. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.






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






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






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






24. An expression that has operands with different data types






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






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. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






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






29. To allow file access in a program you must #include this header file.






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






31. The ________ program transfers the executable image of a C++ program from disk to memory.






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






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






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






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






36. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






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






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






39. A function is invoked with a ________.






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






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






42. Naming convention for C++ programs






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






44. A filestream variable that represents the default output device






45. The symbol for the binary scope resolution operator






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






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






48. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






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






50. Used for dynamically allocated variables