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. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






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






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






4. Creates a copy of a string.






5. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






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






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






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






9. In inheritance the ____________ is the class the receives the inherited members.






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






11. = & | are examples of ____________.






12. To write data to a file you define an object of which one of the following






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






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






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






16. Type casting syntax






17. newline






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






19. A human readable file that contains C++ program






20. These are data items whose values do not change while the program is running






21. Class members specified as _________ are accessible anywhere an object of the class is in scope.






22. The stream insertion operator






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






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






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






26. Used for dynamically allocated variables






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






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






29. Whole numbers - no decimals and no commas included






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






31. int namespace include using return examples of ___________






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






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






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






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






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






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






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






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






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






41. To allow file access in a program you must #include this header file.






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






43. A program that finds and attaches to your program the indicated libraries for compilation






44. Preprocessor directive syntax






45. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






46. An expression that has operands with different data types






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






48. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






49. A filestream variable that represents the default input source






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







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