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. In inheritance the ____________ is the class the receives the inherited members.






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






4. An expression that has operands with different data types






5. The storage-class specifiers are mutable - auto - ________ - extern and static.






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






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






8. Function ________ is used to produce random numbers.






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






10. Executable version of program






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






12. A __________ data member represents class-wide information.






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






14. Class members specified as _________ are accessible anywhere an object of the class is in scope.






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






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






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






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






19. = & | are examples of ____________.






20. This manipulator is used to establish a field width for the value immediately following it.






21. The sign you use for references






22. Preprocessor directive syntax






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






24. A type of pointer that can point at objects of any data type.






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






26. A __________ should be used to declare the size of an array because it makes the program more scalable.






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






28. The stream extraction operator






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






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






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






32. int namespace include using return examples of ___________






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






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






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






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






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






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






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






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






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






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


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






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






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






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






47. To explicitly indicate that a value is to be converted to another type






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






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