
For Loops (Java)
Authored by Alexandria Robles
Computers
9th - 12th Grade
Used 643+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many stars are printed?
7
3
4
5
Infinite Loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In total, how many times is the inner loop executed?
5
10
15
50
Infinite Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times does the loop print a *
40
20
24
30
Infinite Loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
How many times does the following method print a *?
9
6
7
10
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?