Object Oriented Programming Using C++ - Section 8 Multiple Questions and Answers.
Exercise Questions ::
Object Oriented Programming
Published by:Michael Daani
Published by:Michael Daani
43. | To include the double quotes as part of the control string we use the symbol |
| |
| A. | %" |
| B. | "" |
| C. | "",#,C
D,A C++ statement must end in a,: (column), |
| D. | (comma)" |
|
|
Published by:Michael Daani
44. | Student senior(); is a(n)_________ |
| |
| A. | constructor call with no arguments |
| B. | object instantiation |
| C. | constructor call with all default arguments |
| D. | prototype for a function that returns a student object |
|
|
Published by:Michael Daani
45. | The statement int n[4] = {11, -13, 17, 105}; |
| |
| A. | assigns the value -13 to [2] |
| B. | assigns the value 17 to n[2] |
| C. | is wrong; it gives an error message |
| D. | assigns the value 18 to n[2] |
|
|
Published by:Michael Daani
«