Which for loop prints data across each row in the following code snippet?
Int i;
Int j;
For (i = 1; i <= 3; i++)
{
For (j = 1; j <= 3; j++)
{
System.out.print("X") ;
}
System.out.println("") ;
}
A) The inner for loop
B) The outer for loop
C) Both for loops
D) Another missing for loop
Correct Answer:
Verified
Q111: Suppose you must design a program to
Q112: Which of the following activities can be
Q113: A loop inside another loop is called:
A)
Q114: What will be the range of the
Q115: In the following code snippet, when does
Q117: How many times will the output line
Q118: What will be the output of the
Q119: What is the last output line of
Q120: What is the output of this code
Q121: Suppose that the chance to hit the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents