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. int namespace include using return examples of ___________






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






3. Function ________ is used to set the random number seed to randomize a program.






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






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






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






7. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






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






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






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






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






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






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






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






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






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






17. newline






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






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






20. Used for function calls and local variables






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






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






23. Operator with two operands






24. A filestream variable that represents the default output device






25. Naming convention for C++ programs






26. directive A statement that starts with a # is called a ____________.






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






28. Creates a copy of a string.






29. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






30. All C++ Variables are_________.






31. A function is invoked with a ________.






32. data types that refer to numbers with decimals






33. The sign you use for pointers






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






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






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






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






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






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






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






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






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






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






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






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






46. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






47. Associate an identifier with a memory location






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






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






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