Multiple Choice
What is the output of the code below? for (int val = 0; val < 4; val ++)
{
System.out.print ("+") ;
For (int num = 0; num < val; num++)
{
System.out.print ("0") ;
}
}
A) +0+00+000+0000
B) +000+000+000+000
C) ++0+00+000
D) ++++000000
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q117: Which of the following conditions can be
Q118: What will be the final output of
Q119: Which of the following loop(s) should be
Q120: How many times will the output line
Q121: What is the output of the code
Q123: Which loop does not check a condition
Q124: How many times does the following code
Q125: What does the following code do?<br>Int sum
Q126: Which of the loop(s) test the condition
Q127: Which of the following loops executes exactly