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 number used to refer to a particular element of an array is called its ________.






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






3. A filestream variable that represents the default input source






4. The ________ qualifier is used to declare read-only variables.






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






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






7. directive A statement that starts with a # is called a ____________.






8. Use 2 characters to represent one






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






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






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






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






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






14. = & | are examples of ____________.






15. A type of pointer that can point at objects of any data type.






16. The stream extraction operator






17. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






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






19. A ________ program executes before the compiler's translation phase begins.






20. Header file that contains commonly performed mathematical functions






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






22. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






23. Keyword public is a(n) _________






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






25. data types that refer to numbers with decimals






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






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






28. A pointer is a variable that contains as its value the____________ of another variable.






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






30. A function that calls itself






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






32. Nonexecutable statements that are included in a program to provide information about what the program does etc.






33. Default name of executable file






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






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






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






37. Symbol that denotes an action to be performed






38. The sign you use for references






39. Syntax for named constant declaration






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






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






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






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






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






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






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






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






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






49. A variable that holds the address of another variable.






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