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






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






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






4. Associate an identifier with a memory location






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






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






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






8. A C++ statement that makes a decision is ______.






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






10. Used for function calls and local variables






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






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






13. Syntax for named constant declaration






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






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






16. A filestream variable that represents the default output device






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






18. Default name of executable file






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






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






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






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






23. int namespace include using return examples of ___________






24. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






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






26. The only integer that can be assigned directly to a pointer is_____________.






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






28. Identifier or expression that is part of the calculation to be performed






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






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






31. Message displayed to the screen asking user for input; generated with an output statement






32. Preprocessor directive syntax






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






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






35. Keyword public is a(n) _________






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






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






38. Used for dynamically allocated variables






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






40. Whole numbers - no decimals and no commas included






41. An expression that has operands with different data types






42. Header file that contains commonly performed mathematical functions






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






44. This manipulator causes the field to be left-justified with padding spaces printed to the right.






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






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






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






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






49. Initializers __________ must be used to initialize constant members of a class.






50. A function is invoked with a ________.







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