Q.

What is the value of k after the following code fragment?~~~int k = 0;~~~int n = 12~~~while (k < n)~~~{~~~k = k + 1;~~~}

A. 0.
B. 11.
C. 12.
D. 10.
Answer» C. 12.
1k
0
Do you find this helpful?
6

View all MCQs in

Java Programming

Discussion

No comments yet