Java Loops

Java Loops

10th - 12th Grade

24 Qs

quiz-placeholder

Similar activities

Java For Loop basic syntax

Java For Loop basic syntax

9th - 12th Grade

20 Qs

CodeHS JavaScript Control Functions

CodeHS JavaScript Control Functions

8th - 12th Grade

21 Qs

Unit 4: While Loops

Unit 4: While Loops

10th - 12th Grade

25 Qs

Python while loops

Python while loops

12th Grade

20 Qs

Array

Array

10th - 12th Grade

20 Qs

Functions

Functions

9th - 12th Grade

20 Qs

grade 12 Chapter No 4

grade 12 Chapter No 4

12th Grade

20 Qs

C++ Loop

C++ Loop

12th Grade

20 Qs

Java Loops

Java Loops

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Suprabha Malhar-Jain

Used 66+ times

FREE Resource

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which kind of loop would be used?


I need a program that will keep letting me add a monthly payment for 12 months.

FOR Loop

WHILE Loop

2.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

Which kind of loop would be used?


I need a guessing game program that will let me keep guessing until I get the right answer.

FOR Loop

WHILE Loop

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which kind of loop would be used?


I need a program that will keep letting me add money to a piggy bank until I get to $100.

FOR Loop

WHILE Loop

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the symbol used for the INCREMENT operator ?

+

++

=

==

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How many times will the following code print "Welcome to Java"?
int count = 0;
while (count < 10) {
 System.out.println("Welcome to Java");
 count++;
}
8
9
10
0

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

How many times will this loop execute?

50 times

1 time

100 times

Don't know, depends upon a random number

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the final sum after this loop executes

sum = 5

sum = 10

sum = 15

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?