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. Initializers __________ must be used to initialize constant members of a class.






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






3. Symbol that denotes an action to be performed






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






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






6. Whole numbers - no decimals and no commas included






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






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






9. The sign you use for references






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






11. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






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






13. A program that finds and attaches to your program the indicated libraries for compilation






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






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






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






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






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






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






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






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






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






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






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






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






26. The symbol for the binary scope resolution operator






27. Type casting syntax






28. Most calculations are normally performed by ______ statements.






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






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






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






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






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






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






35. A function is invoked with a ________.






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






37. Preprocessor directive syntax






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






39. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






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


41. data types that refer to numbers with decimals






42. Syntax for named constant declaration






43. The stream insertion operator






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






45. Default name of executable file






46. A memory location with a name and data type - its content may be changed during program execution






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






48. A function that calls itself






49. Used for dynamically allocated variables






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