Java For Loop basic syntax

Java For Loop basic syntax

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Fun with Loops

Fun with Loops

9th Grade

20 Qs

Python Beginner

Python Beginner

9th - 10th Grade

16 Qs

CSP Arrays

CSP Arrays

10th - 12th Grade

20 Qs

C++ Loop

C++ Loop

12th Grade

20 Qs

looping and branching statements in C

looping and branching statements in C

9th Grade

20 Qs

ICS Test #4 review

ICS Test #4 review

9th - 12th Grade

15 Qs

Python while loops

Python while loops

12th Grade

20 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

Java For Loop basic syntax

Java For Loop basic syntax

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Brian Miller

Used 38+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This FOR loop starts counting at x = ___

10

0

x

1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This FOR will keep repeating up through and including the x value of ___

10

0

x

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Each time through the FOR loop the value of x will increase by ___

10

0

x

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This loop will output

0

1

2

3

4

5

6

7

8

9

10

1 10

x

0 1 2 3 4 5 6 7 8 9 10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

(Assuming no variables have been declared) What goes in the blank to make the x value start at 1?

x = 1

int x == 1

int x = 1

x == 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

(Assuming no variables have been declared) What goes in the blank to make the x value start at -10?

int x = -10

x = x - 10

int x = x - 10

x = -10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

(Assuming no variables have been declared) What goes in the blank to make the x value start at 5?

x <= 5

int x = 5

int x <= 5

x = 5

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?