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. A function that can be used to read character data including whitespace






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






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






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






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






6. Used for function calls and local variables






7. Operator with two operands






8. Header file that contains commonly performed mathematical functions






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






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






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






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






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






14. newline






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






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






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






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






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






20. Returns the length of a string excluding the null terminator.






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






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






23. The process of determining if an array contains a particular key value is called _________ the array.






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






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






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






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






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






29. Symbol that denotes an action to be performed






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






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






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






33. The stream extraction operator






34. A function that calls itself






35. The address-of operator. it is used to assign pointers and to print the address of variables.






36. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






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






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






39. Preprocessor directive syntax






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






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






42. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






43. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






44. Executable version of program






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






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






47. The stream insertion operator






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






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






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