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. To explicitly indicate that a value is to be converted to another type






2. Naming convention for C++ programs






3. A filestream variable that represents the default output device






4. Executable version of program






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






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






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






8. The sign you use for pointers






9. The elements of an array are related by the fact that they have the same name and ___________.






10. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






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






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






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






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






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






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






17. The ________ program combines the output of the compiler with various library functions to produce an executable image.






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






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






20. Default name of executable file






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






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






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






24. Used for function calls and local variables






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






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






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






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






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






30. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






31. Syntax for named constant declaration






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






33. A variable declared outside any block or function is a ________ variable.






34. Returns the length of a string excluding the null terminator.






35. Whole numbers - no decimals and no commas included






36. directive A statement that starts with a # is called a ____________.






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






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






39. In inheritance the ____________ is the class the receives the inherited members.






40. Associate an identifier with a memory location






41. data types that refer to numbers with decimals






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






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






44. A function that can be used to read character data including whitespace






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






46. The ________ qualifier is used to declare read-only variables.






47. A member function should be declared static if it does not access __________ class members.






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






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






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







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests