Codeforlife python worksheet 2 - Variables, Input and Casting
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
I Robinson
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
Already have an account?
Similar Resources on Wayground
24 questions
Search Engines
Quiz
•
8th - 10th Grade
21 questions
Computational Thinking
Quiz
•
5th - 12th Grade
25 questions
Computer/ Financial Literacy Rev
Quiz
•
1st - 12th Grade
25 questions
PENERAPAN BERPIKIR KOMPUTASIONAL
Quiz
•
8th Grade
21 questions
SQA_2020
Quiz
•
1st - 12th Grade
30 questions
information technology
Quiz
•
6th - 8th Grade
29 questions
Computing Essentials A
Quiz
•
6th - 8th Grade
23 questions
SDA Chapter 1B Vocabulary
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
