

McqMate
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. |
View all MCQs in
Java ProgrammingNo comments yet