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. Identifier or expression that is part of the calculation to be performed






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






3. Symbol that denotes an action to be performed






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






5. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.






6. The symbol for the binary scope resolution operator






7. The ________ program combines the output of the compiler with various library functions to produce an executable image.






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






9. Sets floating-point values to a fixed decimal format






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






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






12. The sign you use for references






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






14. A variable declared outside any block or function is a ________ variable.






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






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






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






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






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






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






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






22. The _________ begins the body of every function and the _________ ends the body of every function.






23. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






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






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






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






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






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






30. Every C++ program begins execution at the function _________.






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






32. Use 2 characters to represent one






33. Member objects are constructed __________ their enclosing class object.






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






35. Preprocessor directive syntax






36. Type casting syntax






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






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






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






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






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






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


43. The modulus operator (%) can be used only with __________.






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






45. You can declare default values for a function in the ____________________.






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






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






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






49. A function that calls itself






50. Most calculations are normally performed by ______ statements.







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