Multiple Choice
Which of the following loops will print the odd numbers between 0 and 20?
A) for (int num = 1; num < 20; num++) {
System.out.print (num % 2 + " ") ;
}
B) for (int num = 0; num < 20; num+= 2) {
System.out.print (num + " ") ;
}
C) for (int num = 1; num < 20; num+= 2) {
System.out.print (num + " ") ;
}
D) for (int num = 0; num < 20; num+= 2) {
If (num % 2 == 1)
System.out.print (num + " ") ;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q100: How many times does the loop execute
Q101: When will the loop in the following
Q102: What is the output of the code
Q103: What does the following code snippet display?
Q104: What is the output of this loop?<br>Int
Q106: How many times does the following loop
Q107: Which statement about storyboards is true?<br>A)A storyboard
Q108: Which of the following is correct for
Q109: How many times does the following loop
Q110: In the following code snippet, when does