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. = & | are examples of ____________.






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






3. A function that calls itself






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






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






6. A variable declared outside any block or function is a ________ variable.






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






8. Use 2 characters to represent one






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






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






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






12. Compares two strings and returns 0 if they are equal.






13. In inheritance the ____________ is the class that supplies the inherited members.






14. Used for dynamically allocated variables






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






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






17. The symbol for the binary scope resolution operator






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






19. tab






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






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






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






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






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






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






26. Whole numbers - no decimals and no commas included






27. Associate an identifier with a memory location






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






29. Function ________ is used to produce random numbers.






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






31. The _________ begins the body of every function and the _________ ends the body of every function.






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






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






34. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line


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






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






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






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






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






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






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






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






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






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






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






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






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






48. A sequence of operands and operators that describe a calculation to be performed






49. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






50. Header file that contains commonly performed mathematical functions