MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?class calcluation { int p; int q; void calc(int K , int L) { K *= 5; L /= 5; } } public class result { public static void main(String args[]) { calculation obj = new calculation(); int p = 20; int q = 40; obj.calc(p , q); System.out.println(p + " " + q); } } |
| A. | 10 20 |
| B. | 20 40 |
| C. | 30 40 |
| D. | 40 20 |
| E. | 20 10 |
| Answer» C. 30 40 | |