
Python definite iteration
Authored by M Ellis
Computers
8th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for an if-else statement in Python?
if condition: / else;
if condition: / else:
if condition; / else:
if condition; / else;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of the variable 'total' in the given code?
0
5
2.5
10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What condition is checked to determine if someone swims for free?
age < 12 or age > 65
age > 12 and age < 65
age == 12 or age == 65
age < 10 or age > 70
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the discount value set to if the user has a discount card?
2.5
5
0
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the total cost for someone who is 8 years old according to the program?
£5.00
£2.50
£0.00
£1.00
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a person is 60 years old and does not have a discount card, what will be their total cost?
£5.00
£2.50
£0.00
£1.00
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is 'definite' iteration used for in programming?
To iterate over a list
To create a new variable
To delete a file
To print a message
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
30 questions
Jaringan Berbasis Luas (WAN)
Quiz
•
1st - 12th Grade
30 questions
Social Media Algorithms
Quiz
•
6th - 8th Grade
35 questions
Tin 8 số 1
Quiz
•
8th Grade
35 questions
Ôn Tập Học Kì I Lớp 4
Quiz
•
4th Grade - University
35 questions
ON TAP GIUA KY 1 - LỚP 8
Quiz
•
8th Grade
30 questions
Intro to HTML Lessons 1-5 CodeHS
Quiz
•
8th Grade
40 questions
KHỐI 8 - GIỮA KÌ 1
Quiz
•
8th Grade
31 questions
Career/Professional Image Unit Test
Quiz
•
8th - 12th 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