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. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






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






3. Executable version of program






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






5. Used for dynamically allocated variables






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






7. Keyword public is a(n) _________






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






9. Operator with only one operand






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






11. Function ________ is used to produce random numbers.






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






13. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






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






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






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






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






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






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






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






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






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






24. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






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






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






27. The sign you use for pointers






28. A constant object must be __________; it cannot be modified after it is created.






29. __________ can be used to assign an object of a class to another object of the same class.






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






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






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






33. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






34. A function that calls itself






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






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






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






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






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






40. Used to qualify hidden names so that they can be used.






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






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






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






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






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






46. The size & shape & color and weight of an object are considered






47. Use 2 characters to represent one






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






49. Operator with two operands






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