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. Nonexecutable statements that are included in a program to provide information about what the program does etc.






2. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






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






4. The three values that can be used to initialize a pointer are 0 - __________ and an address.






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






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






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






8. The stream extraction operator






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






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






11. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






12. int namespace include using return examples of ___________






13. An expression that has operands with different data types






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






15. Used for function calls and local variables






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






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






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






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






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






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






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






23. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






24. Executable version of program






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






26. Function ________ is used to produce random numbers.






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






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






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






30. In inheritance the ____________ is the class the receives the inherited members.






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






32. All C++ Variables are_________.






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






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






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






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






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






38. Every C++ program begins execution at the function _________.






39. = & | are examples of ____________.






40. The symbol for the binary scope resolution operator






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






42. For every opening brace in a C++ program there must be a ______________.






43. Header file that contains commonly performed mathematical functions






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






45. The sign you use for pointers






46. Operator with only one operand






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






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






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






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