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. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






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






3. A filestream variable that represents the default input source






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






5. All ______ must be declared before they are used.






6. Repeating a set of instructions a specific number of times is called_________repetition.






7. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.






8. A filestream variable that represents the default output device






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






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






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






12. Preprocessor directive syntax






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






14. The stream insertion operator






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






16. Function ________ is used to produce random numbers.






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






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






19. tab






20. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






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






22. Naming convention for C++ programs






23. Smallest individual unit of a programming language - special symbols or word symbols or identifiers






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






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






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






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






28. Executable version of program






29. A set of values together with a set of operations






30. The ________ enables access to a global variable with the same name as a variable in the current scope.






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






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






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






34. Characters used to separate symbols or reserved words or identifiers and statements






35. The __________ operator reclaims memory previously allocated by new.






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






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






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






39. Whole numbers - no decimals and no commas included






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






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






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. Classes can have relationships with other classes. These relationships are called ________.






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






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. Used to qualify hidden names so that they can be used.






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






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






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






50. newline