Java For Loop basic syntax

Java For Loop basic syntax

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Bài 13 Tin 10

Bài 13 Tin 10

1st - 12th Grade

18 Qs

TO PAS AIJ

TO PAS AIJ

11th Grade

20 Qs

Pointers

Pointers

12th Grade

20 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Aplikasi Perkantoran

Aplikasi Perkantoran

10th 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 40+ 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers