Loops
Quiz
•
Computers
•
5th - 12th Grade
•
Medium
Khushi H
Used 369+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following program segment display?
for(int a = 2; a <= 10; a += 3)
System.out.print(a+””);
2 5 8
2 5
2 5 8 11
2
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int x = 0;
while (x < 4) {
x = x + 1;
}
System.out.println("x is " + x);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Repeating a task multiple times in programming is known as ?
Iterators
Scope
Looping
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which loop loops a set number of times?
for
while
infinite
loopy
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is the correct syntax for a loop?
for(int i = 0; i<10; 1++){}
fore(integer i = 0; i>10; i++){}
for(int i = 0; i<10){}
for(int i){}
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way to create a String?
String s = "I am cool";
string string = i am cool;
String s = I am cool
String s = "I" am cool;
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Ôn tập logo
Quiz
•
5th Grade
15 questions
Dasar Kompetensi Keahlian IPv6
Quiz
•
10th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
20 questions
Программирование массивов, сортировка, удаление и вставка элементов
Quiz
•
8th Grade
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
20 questions
Administrasi Sistem jaringan KD1
Quiz
•
1st - 10th Grade
20 questions
Uji Kompetensi 1
Quiz
•
6th Grade
12 questions
Clase de Computación: Excel
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
