
JAVA LOOPS
Authored by RAVINDER B
Computers
2nd Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for (int i = 0; i < 3; System.out.print(i + " "))
{
i++;
}
0 1 2
1 2 3
0 2
Infinite loop
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int i = 0;
while (i < 5)
if (i++ % 2 == 0)
System.out.print(i + " ");
}
1 3 5
0 2 4
2 4
1 2 3 4 5
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for (int i = 0; i < 10; i++) {
if (i * i > 30)
break;
System.out.print(i + " ");
}
0 1 2 3 4
0 1 2 3 4 5
0 1 2 3 4 5 6
None
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int i = 0, j = 5;
for (; i < j; j--) {
if (i++ % 2 == 0)
continue;
System.out.print(i + j + " ");
}
5 6 7
7 8
7 8 9
ERROR
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
outer:
for (int i = 1; i <= 3; i++) {
inner:
for (int j = 1; j <= 3; j++) {
if (i * j == 4)
break outer;
System.out.print(i + "" + j + " ");
}
}
11 12 13 21 22
11 12 13 21 22 23
11 12 13 21 22 23 31 32 33
11 12 13 21 22
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x = 0;
for (int y = 0; y < 3; y++) {
x++;
}
System.out.println(x + " " + y);
3 3
3 2
3 1
ERROR
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int sum = 0;
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
if ((i + j) % 2 == 0)
sum += i + j;
System.out.println(sum);
9
8
10
12
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
10 questions
Uses of Computers + Paint
Quiz
•
2nd Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
12 questions
Stencyl 2.1
Quiz
•
1st - 12th Grade
10 questions
JENIS-JENIS MEDAN
Quiz
•
1st - 6th Grade
12 questions
G2-W9-COPY AND PASTE
Quiz
•
2nd Grade
9 questions
Napewno tego nie wiesz! - VIKI GABOR
Quiz
•
1st - 10th Grade
10 questions
Conosci Eoc-Desk?
Quiz
•
1st - 12th Grade
10 questions
Tìm hiểu máy tính
Quiz
•
2nd Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Wayground Quiz Review for G2 Benchmark 3
Quiz
•
2nd Grade
20 questions
addition facts
Quiz
•
2nd Grade
10 questions
Telling Time to the Nearest 5 Minutes
Quiz
•
2nd Grade
30 questions
Multiplication Facts 1-12
Quiz
•
2nd - 5th Grade
7 questions
Understanding Parallel, Intersecting, and Perpendicular Lines
Interactive video
•
1st - 6th Grade
14 questions
Main Idea
Quiz
•
2nd - 3rd Grade
20 questions
Multiplication Facts
Quiz
•
2nd - 3rd Grade
10 questions
3 Digit Addition and Subtraction with Regrouping
Quiz
•
2nd - 4th Grade