
Python - Basic Variables, Arithmetic and Display
Authored by Tim Helland
Computers
9th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which of these assigns an integer to x?
int x = 5
x = 5
x := 5
x == 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would the value "Hello" be?
int
string
boolean
float
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what is the result of 3+7?
10
37
"3 + 7"
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what is the result of "3"+"7"?
10
37
"3 + 7"
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which of these displays what is stored in a variable called `name`?
print name
print(name)
echo(name)
printf(name)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which of these is a boolean value?
"True"
1
True
"False"
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 8-3 in Python?
5
83
-5
3
38
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?