Python definite iteration

Quiz
•
Computers
•
8th Grade
•
Medium

M Ellis
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
31 questions
Python Lists

Quiz
•
8th Grade - University
30 questions
PTS Informatika Kelas 8

Quiz
•
8th Grade
31 questions
Excel Skills Review

Quiz
•
KG - University
30 questions
TERM 2_TEST 2_YEAR 8_CHAPTER 3

Quiz
•
8th Grade
34 questions
Automation and Robotics 2.3

Quiz
•
6th - 8th Grade
34 questions
Computer Science Discoveries Unit 2 Test (HTML, Express Course Vocab)

Quiz
•
7th - 8th Grade
31 questions
Python Quiz

Quiz
•
6th - 8th Grade
35 questions
Микро развлечение

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade