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. Names of things that are used in a program - can apply to variables & constants and functions






2. Associate an identifier with a memory location






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






4. All C++ Variables are_________.






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






6. Keyword public is a(n) _________






7. A file must be ________ before data can be written to or read from it.






8. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






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






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






11. A function that calls itself






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






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






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






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






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






17. The sign you use for references






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






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






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






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






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






23. tab






24. Used for function calls and local variables






25. The stream insertion operator






26. A filestream variable that represents the default output device






27. int namespace include using return examples of ___________






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






29. The sign you use for pointers






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






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






32. Most calculations are normally performed by ______ statements.






33. A program that finds and attaches to your program the indicated libraries for compilation






34. Program components in C++ are called functions and ________.






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


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






37. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






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






40. You can declare default values for a function in the ____________________.






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






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






43. Function ________ is used to produce random numbers.






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






45. Header file that contains commonly performed mathematical functions






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






47. A variable that holds the address of another variable.






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






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






50. Use 2 characters to represent one