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. All C++ Variables are_________.






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






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






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






5. Creates a copy of a string.






6. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






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






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






9. The sign you use for pointers






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






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






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






13. Operator with two operands






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






15. Type casting syntax






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






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






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






19. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






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






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






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






23. For every opening brace in a C++ program there must be a ______________.






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






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






26. An expression in which all operands have the same data type - result will have the same data type as operands






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






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






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






30. Use 2 characters to represent one






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






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






33. data types that refer to numbers with decimals






34. Forces the computer to display decimal point and trailing zeroes






35. Syntax for named constant declaration






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






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






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






39. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






40. Keyword public is a(n) _________






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






42. The elements of an array are related by the fact that they have the same name and ___________.






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






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






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






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






47. Naming convention for C++ programs






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






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






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



Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests