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 symbol for the binary scope resolution operator






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






3. Creates a copy of a string.






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






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






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






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






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






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






10. Default name of executable file






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






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






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






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


15. Symbol that denotes an action to be performed






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






17. A memory location with a name and data type - its content may be changed during program execution






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






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






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






21. An expression that has operands with different data types






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






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






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






25. A function is invoked with a ________.






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






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






28. data types that refer to numbers with decimals






29. Executable version of program






30. Used for function calls and local variables






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






32. Whole numbers - no decimals and no commas included






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






34. The sign you use for pointers






35. Preprocessor directive syntax






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






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






38. A filestream variable that represents the default output device






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






40. The idea that you can call the same function and the output will depend on the type of object you're using.






41. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






42. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






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






44. A pointer is a variable that contains as its value the____________ of another variable.






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. Returns the length of a string excluding the null terminator.






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






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






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






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