
JF S6-S9
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Jerry Mahana
Used 138+ times
FREE Resource
Enhance your content in a minute
118 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A for loop is also called a definite loop
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The for loop provides a complicated way to iterate over a range of values.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement will produce the output: 2, 4, 6, 8, 10?
for (int i = 0; i < 10; i += 2) {
System.out.print(i + " ");
}
for (int i = 1; i < 10; i += 2) {
System.out.print(i + " ");
}
for (int i = 0; i < 8; i += 2) {
System.out.print(i + " ");
}
for (int i = 2; i <= 10; i += 2) {
System.out.print(i + " ");
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given:
for(int i = 0; i > 10; i++){ }
What type of variable is i?
Global
Static
Member
Local
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which two operators cannot be used as the conditional expression in a for loop?
<
!<
!>
==
!=
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is not a looping statement in Java?
for
do-while
switch
while
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the two are pre-test loops?
for
while
do-while
forEach
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
