Loops Quiz

Quiz
•
Computers
•
11th Grade
•
Hard
Garrett Baltzer
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A while loop has the following format:
while (condition)
{
...
}
while
{
...
}
continue while (condition)
{
...
}
while [condition]
[
...;
]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A while loop carries on as long as...
The condition in the brackets is true
The condition in the brackets is false
i < 10
the for loop has not ended
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
OUTPUT?
int i = 1;
while (i < 5) {
System.out.println("Hello");
i++;
}
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many stars are printed?
7
3
4
5
Infinite Loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In total, how many times is the inner loop executed?
5
10
15
50
Infinite Loop
6.
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a loop condition is never satisfied then the loop does not execute.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
quiz dasar python

Quiz
•
1st Grade - University
22 questions
Basic Coding Concepts in GDScript

Quiz
•
11th Grade
20 questions
Python -Iteration (loops)

Quiz
•
7th - 12th Grade
22 questions
Python тілінде циклдар

Quiz
•
9th - 12th Grade
21 questions
Синтаксис Python

Quiz
•
7th - 11th Grade
24 questions
CS A Unit 4 Practice

Quiz
•
11th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
20 questions
SJiWP - 2022 - 06 (do 81)

Quiz
•
11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade