

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?
public class Modulus_Example { public static void main(String args[]) { double p = 10.34; int q = 20; p = p % 15; q = q % 20; System.out.println(p + " " + q); } } |
A. | 10 0.0 |
B. | 11 10.00 |
C. | 10.22 10 |
D. | 10.34 0 |
E. | 2 10.21 |
Answer» E. 2 10.21 | |