For Loops (Java)

For Loops (Java)

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Nested loop in Java

Nested loop in Java

9th - 12th Grade

10 Qs

Excel 2016 Lesson 1 Vocabulary

Excel 2016 Lesson 1 Vocabulary

8th - 9th Grade

15 Qs

JAVA LEVEL 1 QUIZ 4

JAVA LEVEL 1 QUIZ 4

8th Grade - University

15 Qs

CS1 Unit 9 Review

CS1 Unit 9 Review

9th - 12th Grade

15 Qs

HTML - Tags, elements, tables and images

HTML - Tags, elements, tables and images

7th - 9th Grade

12 Qs

Word L6 Creating Tables

Word L6 Creating Tables

9th Grade

15 Qs

Arduino IDE

Arduino IDE

3rd Grade - Professional Development

17 Qs

Microsoft Publisher

Microsoft Publisher

7th - 10th Grade

10 Qs

For Loops (Java)

For Loops (Java)

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Alexandria Robles

Used 626+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many stars are printed?

7

3

4

5

Infinite Loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In total, how many times is the inner loop executed?

5

10

15

50

Infinite Loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times does the loop print a *

40

20

24

30

Infinite Loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code print?

A rectangle of 8 rows with 5 stars per row

A rectangle of 8 rows with 4 stars per row

A rectangle of 6 rows with 5 stars per row

A rectangle of 6 rows with 4 stars per row

Infinite Looo

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code print?

A rectangle of 9 rows with 5 stars per row

A rectangle of 6 rows with 6 stars per row

A rectangle of 7 rows with 5 stars per row

A rectangle of 7 rows with 6 stars per row

Infinite Loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code print?

5 6 7 8 9

4 5 6 7 8 9 10 11 12

3 5 7 9 11

3 4 5 6 7 8 9 10 11 12

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times does the following method print a *?

9

6

7

10

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?