MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented System Design knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Compilation_error$ |
| A. | Run time error |
| B. | The value of c is 0 |
| C. | None of the mentioned |
| Answer» B. The value of c is 0 | |
| 2. |
Which of the following is default value of ‘double’ data type?# |
| A. | 0 |
| B. | 0.0d |
| C. | null |
| D. | false |
| Answer» C. null | |
| 3. |
Which of the following is default value of ‘int’ data type?$ |
| A. | 0 |
| B. | null |
| C. | true |
| D. | false |
| Answer» B. null | |
| 4. |
What is the maximum value of ‘byte’ data type?$ |
| A. | 2^7 |
| B. | 2^7+1 |
| C. | 2^7-1 |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 5. |
What is the minimum value of ‘short’ data type?$ |
| A. | -32,768 |
| B. | -127 |
| C. | -2,147,483,648 |
| D. | -32,767 |
| Answer» B. -127 | |
| 6. |
What is the size(in bytes) of ‘byte’ primitive data type?$ |
| A. | 4 |
| B. | 1 |
| C. | 2 |
| D. | 8 |
| Answer» C. 2 | |
| 7. |
Which of the following data type is used to fetch stream of data from network or file? |
| A. | char |
| B. | int |
| C. | byte |
| D. | double |
| Answer» D. double | |