Multiple Choice
What for loop can be used in the indicated area so the code will print: ****
***
**
*
For (int val = 0; val < 4; val ++)
{
System.out.print ("+") ;
// Put for loop here
{
System.out.print ("*") ;
}
System.out.println () ;
}
A) for (int num = 0; num < 4 - val; num++)
B) for (int num = 0; num < val; num++)
C) for (int num = 4; num < val; num++)
D) for (int num = 4; num > 0; num--)
Correct Answer:

Verified
Correct Answer:
Verified
Q58: The code snippet below checks whether a
Q59: What is the output of the following
Q60: Given the following code snippet, what should
Q61: Which statement about this code snippet is
Q62: When designing storyboards, it is a good
Q64: When hand-tracing the loop in the code
Q65: For which input values will the following
Q66: What is the output of the following
Q67: What is the output of the code
Q68: What is the output of the following