728by90ad
Object Oriented Programming Using C++ - Section 8 Multiple Questions and Answers.
Exercise Questions ::
Object Oriented Programming
Published by:Michael Daani
37. | Which of the following statements declares a variable that can contain a decimal number? |
| |
| A. | dec payRate; |
| B. | dec hourlyPay |
| C. | float payRate |
| D. | float hourlyPay; |
|
|
Published by:Michael Daani
38. | The statement int num[2][3]={ {1,2}, {3,4}, {5, 6} }; |
| |
| A. | assigns a value 2 to num[1][2] |
| B. | assigns a value 4 to num[1][2] |
| C. | gives an error message |
| D. | assigns a value 3 to num[1][2] |
|
|
Published by:Michael Daani
Published by:Michael Daani
40. | If the code and fee arrays are parallel, the fee that corresponds to the code stored in the code[3] element is located in the _____ element |
| |
| A. | code[2] |
| B. | code[3] |
| C. | fee[2] |
| D. | fee[3] |
|
|
Published by:Michael Daani
«»