MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
1 2 0 0 |
| A. | 1 2 1 2 |
| B. | 0 0 0 0 |
| C. | System Dependent |
| Answer» C. System Dependent | |
| 2. |
Which of function return absolute value of a variable? |
| A. | abs() |
| B. | absolute() |
| C. | absolutevariable() |
| D. | none of the mentioned |
| Answer» B. absolute() | |
| 3. |
Which of these method returns a largest whole number less than or equal to variable X? |
| A. | double ceil(double X) |
| B. | double floor(double X) |
| C. | double max(double X) |
| D. | double min(double X) |
| Answer» C. double max(double X) | |
| 4. |
Which of these methods return a smallest whole number greater than or equal to variable X? |
| A. | double ceil(double X) |
| B. | double floor(double X) |
| C. | double max(double X) |
| D. | double min(double X) |
| Answer» B. double floor(double X) | |