Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Used 1K+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int x = 0;
while (x < 4) {
x = x + 1;
}
System.out.println("x is " + x);
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int count = 0;
while (count < 100) {
// Point A
System.out.println("Welcome to Java!");
count++;
// Point B
}
// Point C
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int count = 0;
do {
System.out.println("Welcome to Java");
count++;
} while (count < 10);
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
for (int count = 1; count <= 10; count++) {
System.out.println("Welcome to Java");
System.out.println("Welcome to Java");
}
System.out.println("Welcome to Java");
}
System.out.println("Welcome to Java");
}
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
for (int i = 1; i <= 10; i++) {
System.out.print(i + " ");
i++;
}
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int y = 0;
for (int i = 0; i<10; ++i) {
y += i;
}
System.out.println(y);
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Sentinel Controlled Repetition (Java)

Quiz
•
12th Grade
7 questions
Pentaksiran T4(menulis kod arahan Java)

Quiz
•
11th Grade
11 questions
while and do while Loop

Quiz
•
10th Grade
10 questions
Java Quiz 1: Introduction

Quiz
•
6th - 12th Grade
15 questions
Area and Arrays

Quiz
•
10th - 12th Grade
15 questions
UTS SMT Genap PBO 11 RPL

Quiz
•
11th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
10 questions
Coding Test

Quiz
•
9th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade