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. The process of analyzing and designing a system from an object-oriented point of view is called ________.






2. Lists and tables of values can be stored in arrays or __________.






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






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






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






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






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






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






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






10. * / % + -






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






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






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






14. Used for dynamically allocated variables






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






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






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






18. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






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






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






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






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






23. A function is invoked with a ________.






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






25. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.






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






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






28. data types that refer to numbers with decimals






29. A filestream variable that represents the default output device






30. Whole numbers - no decimals and no commas included






31. Syntax for named constant declaration






32. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






33. Creates a copy of a string.






34. Initializers __________ must be used to initialize constant members of a class.






35. Function ________ is used to produce random numbers.






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






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






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






39. A filestream variable that represents the default input source






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






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






42. Names of things that are used in a program - can apply to variables & constants and functions






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






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


45. int namespace include using return examples of ___________






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






47. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






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






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






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