Multiple Choice
What will be the output of the following code snippet?
Int i;
Int j;
For (i = 0; i < 7; i++)
{
For (j = 7; j > i; j--)
{
System.out.print("*") ;
}
System.out.println("") ;
}
A) A rectangle with six rows and seven columns of asterisks. The number of rows increments by one on completion of one iteration of the inner loop.
B) A right triangle with six rows and seven columns of asterisks. The number of columns increments by one on completion of one iteration of the inner loop.
C) A rectangle with seven rows and six columns of asterisks. The number of rows increments by one on completion of one iteration of the inner loop.
D) A right triangle with six rows and seven columns of asterisks. The number of columns decrements by one on completion of one iteration of the inner loop.
Correct Answer:

Verified
Correct Answer:
Verified
Q47: Which code snippet produces the sum of
Q48: What does the following code snippet display?
Q49: Suppose you must design a program to
Q50: What are the values of i and
Q51: When hand-tracing a portion of code, which
Q54: Select the statement that correctly completes the
Q55: What are the values of i and
Q56: A loop inside another loop is called:<br>A)
Q57: What is the sentinel value in the
Q105: Which of the following statements is correct