MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?public class Increment { public static void main(String args[]) { double num1 = 5 + 10; double num2 = num1 / 6; int num3 = 10 + 5; int num4 = num3 / 6; System.out.print(num2 + " " + num4); } } |
| A. | 0 2 |
| B. | 2.5 2 |
| C. | 2.5 1 |
| D. | 3 2 |
| E. | 1 1 |
| Answer» C. 2.5 1 | |