Python L5 Tips Calculator
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Easy
Future Teacher
Used 5+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does input() return by default in Python?
int
float
string
boolean
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Fill in the blank to convert the bill input into a float:
bill = _______(input("How much is the total bill? "))
3.
CLASSIFICATION QUESTION
3 mins • 1 pt
Drag and drop the following data types into the correct category:
Groups:
(a) String
,
(b) Boolean
,
(c) Integer
,
(d) Float
1.44
"False"
"Good Job!"
400
False
1890
3.1425
int("456")
True
4.
MATCH QUESTION
1 min • 1 pt
Match the function to what it does:
float()
Takes user input
print()
Converts to float
f"{value:.2f}"
Shows 2 decimal places
input()
Displays output
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using f"{final:.2f}" in the Tips Calculator?
Convert string to float
Split the bill
Format the number to 2 decimal places
Round the number to the nearest whole
6.
LABELLING QUESTION
1 min • 1 pt
Fill in the blank to complete the code
Similar Resources on Wayground
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
10 questions
Quiz 1: Programming in Scratch
Quiz
•
8th Grade
10 questions
7 ICT Sem 2 Reviewer
Quiz
•
7th Grade
10 questions
Introduction to Scratch
Quiz
•
6th - 8th Grade
10 questions
Program Remedial Penilaian Harian 1 Genap 2023/2024
Quiz
•
7th Grade
10 questions
Quiz 9 (15.09.2021)
Quiz
•
1st - 12th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
10 questions
Blue Cross Websites
Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
