
Loops Quizz
Authored by Robert Daniel
Computers
1st Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a 'for' loop used for in programming?
To repeat a block of code a specific number of times
To check a condition and repeat a block of code until the condition is false
To define a function
To print a message to the screen
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a 'while' loop used for in programming?
To repeat a block of code a specific number of times
To check a condition and repeat a block of code until the condition is false
To define a function
To print a message to the screen
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for a 'for' loop in Python?
`for i in range(5):`
`while i < 5:`
`if i < 5:`
`def for_loop():`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for a 'while' loop in Python?
`for i in range(5):`
`while i < 5:`
`if i < 5:`
`def while_loop():`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following 'for' loop print? ``` for i in range(3): print(i) ```
0 1 2
1 2 3
0 1 2 3
1 2 3 4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following 'while' loop print? ``` i = 0 while i < 3: print(i) i += 1 ```
0 1 2
1 2 3
0 1 2 3
1 2 3 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a 'for' loop, what does the `range` function do?
It creates a list of numbers
It checks a condition
It defines a function
It prints a message to the screen
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
16 questions
2. r - Siguran na internetu
Quiz
•
1st Grade
15 questions
Quiz informatyczny
Quiz
•
1st - 8th Grade
18 questions
Scratch kl.V
Quiz
•
1st - 5th Grade
11 questions
What is a computer
Quiz
•
KG - University
10 questions
Internet Communication
Quiz
•
KG - 1st Grade
10 questions
DESIGN TECHNOLOGY MASK DESIGN
Quiz
•
1st - 2nd Grade
11 questions
PENTAKSIRAN BAB 2 ASK TINGKATAN 2
Quiz
•
1st - 2nd Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade