Look at the following code:
name = "John"
age = 23
What type of data is stored in the variable name?
Variables in Python
Quiz
•
Computers
•
8th Grade
•
Medium
Mr. So
Used 321+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = "John"
age = 23
What type of data is stored in the variable name?
str
int
float
nothing
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = "John"
age = 23
What type of data is stored in the variable age?
str
int
float
nothing
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = "John"
age = "23"
What type of data is stored in the variable age?
str
int
float
nothing
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I want to store my height in a variable, which of the following would be a good variable name in best practice?
abcdefg
inches
number
height
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I want to store my name in a variable, which of the following would be a good variable name in best practice?
name
teacher
mister
abcdef
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If I want to store multiple names in variables, which of the following would be good variable names in best practice?
a
b
c
name1
name2
name3
Audrey
Ben
John
blah1
blah2
blah3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = "23"
age = int(age)
What does the int() function do to the data in my variable?
does nothing
changes the string to a float
changes the number to a string
changes the string to an integer
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
age = 23
age = float(age)
What does the float() function do to the data inside age?
changes the string to an int
changes the int to a string
adds a decimal point (23.0)
does nothing
12 questions
Python Programming Basics
Quiz
•
7th - 11th Grade
10 questions
Python constructs
Quiz
•
8th Grade
11 questions
C++ Functions
Quiz
•
6th - 8th Grade
10 questions
Lesson 1 Python I Review
Quiz
•
6th - 8th Grade
12 questions
Lesson 9 - The internet
Quiz
•
8th Grade
10 questions
Programming in Java
Quiz
•
8th Grade
10 questions
Year 7 Python Lesson 1 Recap
Quiz
•
8th Grade
12 questions
S3 Python 1
Quiz
•
8th - 10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary
Quiz
•
8th Grade
17 questions
guess the logo
Quiz
•
8th Grade
16 questions
Function or Non-Function?
Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons
Quiz
•
8th Grade