Solved

How Many Times Will the Output Line Be Printed in the Following

Question 13

Multiple Choice

How many times will the output line be printed in the following code snippet?
For (int num2 = 1; num2 <= 3; num2++)
{
For (int num1 = 0; num1 <= 2; num1++)
{
System.out.println("" + num2 + " " + num1) ;
}
}


A) 3 times
B) 6 times
C) 9 times
D) 12 times

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents