
2.2.1a Variables & Types
Authored by Simon Graham
Computers
9th - 12th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct way to write a variable in Python?
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Data type for a whole number
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which instruction asks the user to enter something?
print()
int()
input()
def
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the variable in the following script?
name
hello, your name is
There is no variable in this script
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following would show 'hello world' when the code was run?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you ask the user their favorite food and store this information in a variable?
input()
favoriteFood = print("What is your favorite food?")
favoriteFood = input
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Variables cannot be changed when the program is running.
False
True
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?