
Loops Quizz
Quiz
•
Computers
•
1st Grade
•
Hard
Robert Daniel
FREE Resource
Enhance your content
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
11 questions
Coding Vocab
Quiz
•
KG - 6th Grade
15 questions
Python Programming Quiz
Quiz
•
1st Grade
15 questions
Wordpad kelas 1
Quiz
•
1st - 2nd Grade
14 questions
Python Data types & Exceptions
Quiz
•
1st - 10th Grade
14 questions
JavaScrip - DSI
Quiz
•
1st Grade - University
14 questions
grade 2 computer
Quiz
•
KG - 3rd Grade
10 questions
Python тілінде программалау
Quiz
•
1st - 10th Grade
10 questions
TIK
Quiz
•
1st Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
5 questions
Sense and Response
Quiz
•
1st Grade