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 address-of operator. it is used to assign pointers and to print the address of variables.






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






3. A human readable file that contains C++ program






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






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






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






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






8. A variable that is known only within the function in which it is defined is called a ________.






9. data types that refer to numbers with decimals






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






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






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






13. Use 2 characters to represent one






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






15. Naming convention for C++ programs






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






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






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






19. An expression in which all operands have the same data type - result will have the same data type as operands






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






21. * / % + -






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






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






24. Operator with only one operand






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






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






27. Grammar rules of the language; compiler will try to identify and locate syntax errors






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






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






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






31. An expression that has operands with different data types






32. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






33. To write data to a file you define an object of which one of the following






34. Associate an identifier with a memory location






35. The symbol for the binary scope resolution operator






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






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






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






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






40. newline






41. Keyword public is a(n) _________






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






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






44. Type casting syntax






45. Most calculations are normally performed by ______ statements.






46. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






47. A filestream variable that represents the default output device






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






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






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







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