Week 2:Assignment 2
1)
    b. 2
2)
    d. 4and5
3)
    c. Prints first 10 natural numbers in a single line.
4)
    c. Replace line 4 with System.out.print(++n + "");
5)
    b. 22222018
6)
    a. Change line 4 as x = (short) (x * 5);
7)
    d. 000
8)
    d. nptel
9)
    d. Compilation error
10)
    a. 50
Explanation Click here to wtach the video