
Codeforlife python worksheet 2 - Variables, Input and Casting
Authored by I Robinson
Computers
8th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the technical name we give to an area of memory which we can store something in using a label? HINT: Var_____
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we run an input() function in python, what sort of data type does it always return?
string
integer
real
boolean
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the technical word for converting one data type into another in Python? HINT: Cas____
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If we wanted to convert "3" into an integer, what do we need to replace the blank with
___("3")
int
float
bool
str
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is this style of writing variables called? my_height = 6
snake case
slug case
snail case
camel case
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's wrong with this code?
print("Hello", name)
name = input("Enter your name: ")
There is a missing bracket
Name should be converted to an integer
The lines are the wrong way around
Input has been spelled incorrectly
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's wrong with this code?
COUNTRY = input("Enter a country name:")
print("I'd like to go to", country)
Missing quotation marks
Missing a bracket
COUNTRY should be converted to an integer
COUNTRY and country are different variables
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
21 questions
ULANGAN BERPIKIR KOMPUTASIONAL 8
Quiz
•
8th Grade
22 questions
Digital Footprint Vocabulary
Quiz
•
6th - 8th Grade
22 questions
Ceative iMedia hardware & Software
Quiz
•
8th Grade
21 questions
Jobs in the media industry
Quiz
•
8th - 10th Grade
21 questions
Ms. Word
Quiz
•
8th Grade
23 questions
BÀI 3. QUẢN LÍ DỮ LIỆU TRONG MÁY TÍNH
Quiz
•
6th - 8th Grade
29 questions
Internet Terms Grade 7 & 8
Quiz
•
6th - 8th Grade
25 questions
1st Semester Review Questions 1-25
Quiz
•
7th - 8th 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