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. Program components in C++ are called functions and ________.






2. Keyword public is a(n) _________






3. Member objects are constructed __________ their enclosing class object.






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






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






6. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






7. Classes can have relationships with other classes. These relationships are called ________.






8. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






9. The idea that you can call the same function and the output will depend on the type of object you're using.






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






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






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






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






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






15. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






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






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






18. A function that calls itself






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






20. Use 2 characters to represent one






21. A sequence of operands and operators that describe a calculation to be performed






22. Preprocessor directive syntax






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






24. A filestream variable that represents the default input source






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






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






27. The stream extraction operator






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






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






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






31. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






32. The symbol for the binary scope resolution operator






33. Symbol that denotes an action to be performed






34. A function is invoked with a ________.






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






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


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






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






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






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






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






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






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






44. You must have a ___________ for every variable you intend to use in a program






45. The sign you use for references






46. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






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






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






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






50. Type casting syntax