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. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






2. Symbol that denotes an action to be performed






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






4. If a member initializer is not provided for a member object of a class the object's __________ is called.






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






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






7. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






8. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






9. A function is invoked with a ________.






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






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






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






13. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






14. int namespace include using return examples of ___________






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






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






17. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






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






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






20. newline






21. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






22. Use 2 characters to represent one






23. You must have a ___________ for every variable you intend to use in a program






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






25. The stream extraction operator






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






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


28. Default name of executable file






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






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






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






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






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






34. Keyword public is a(n) _________






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






36. The symbol for the binary scope resolution operator






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






38. The ________ statement in a called function passes the value of an expression back to the calling function.






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






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






41. The process of determining if an array contains a particular key value is called _________ the array.






42. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






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






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






45. tab






46. All C++ Variables are_________.






47. Executable version of program






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






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






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