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. A file must be ________ before data can be written to or read from it.






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






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






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






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






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






7. A function is invoked with a ________.






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






9. An expression that has operands with different data types






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






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






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






13. This manipulator causes the field to be left-justified with padding spaces printed to the right.






14. The sign you use for references






15. Preprocessor directive syntax






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






17. C++ programs are normally typed into a computer using a(n) ________ program.






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






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






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






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






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






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






24. Most calculations are normally performed by ______ statements.






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






26. Used for function calls and local variables






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






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






29. The stream extraction operator






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






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






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






33. The stream insertion operator






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






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






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






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






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






39. tab






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. A variable that holds the address of another variable.






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






43. The sign you use for pointers






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






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






46. Naming convention for C++ programs






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






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






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






50. The symbol for the binary scope resolution operator