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 constant object must be __________; it cannot be modified after it is created.






2. Executable version of program






3. Used for function calls and local variables






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






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






6. A variable that is known only within the function in which it is defined is called a ________.






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






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






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






10. All C++ Variables are_________.






11. Keyword public is a(n) _________






12. An array that uses two subscripts is referred to as a(n) _________ array.






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


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






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






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






17. Operator with two operands






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






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






20. The stream extraction operator






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






22. Header file that contains commonly performed mathematical functions






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






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






25. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






26. Most calculations are normally performed by ______ statements.






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






28. A __________ should be used to declare the size of an array because it makes the program more scalable.






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






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






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






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






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






34. Symbol that denotes an action to be performed






35. A function is invoked with a ________.






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






37. Naming convention for C++ programs






38. Syntax for named constant declaration






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






40. = & | are examples of ____________.






41. Creates a copy of a string.






42. Function ________ is used to produce random numbers.






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






44. Allows the programmer to store a value in a variable






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






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






47. A member function should be declared static if it does not access __________ class members.






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






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






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







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