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 __________ should be used to declare the size of an array because it makes the program more scalable.






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






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






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






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






6. A function is invoked with a ________.






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






8. tab






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






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






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






12. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






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






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






15. __________ can be used to assign an object of a class to another object of the same class.






16. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.






17. The stream insertion operator






18. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






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






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






21. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






22. Executable version of program






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






24. newline






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






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






27. Used for function calls and local variables






28. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






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






30. All C++ Variables are_________.






31. Program components in C++ are called functions and ________.






32. The process of analyzing and designing a system from an object-oriented point of view is called ________.






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






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






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






36. Use 2 characters to represent one






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






38. Symbol that denotes an action to be performed






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






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






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






42. Preprocessor directive syntax






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






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






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






46. Type casting syntax






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






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






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






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







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