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 __________ operator reclaims memory previously allocated by new.






2. data types that refer to numbers with decimals






3. Compares two strings and returns 0 if they are equal.






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






5. Syntax for named constant declaration






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






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






8. The stream extraction operator






9. Whole numbers - no decimals and no commas included






10. newline






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






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






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






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






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






16. Most calculations are normally performed by ______ statements.






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






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






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






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






21. The stream insertion operator






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






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


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






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






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






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






28. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






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






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






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






32. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






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






34. An array that uses two subscripts is referred to as a(n) _________ array.






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






36. The ________ program transfers the executable image of a C++ program from disk to memory.






37. = & | are examples of ____________.






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






39. A filestream variable that represents the default input source






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






41. This manipulator is used to establish a field width for the value immediately following it.






42. The sign you use for references






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






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






45. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






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






47. Default name of executable file






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






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






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