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 325+ 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
Computer Systems - How the web works - Lesson 7
Quiz
•
8th Grade
10 questions
Программирование C#
Quiz
•
1st - 10th Grade
12 questions
Python
Quiz
•
7th - 8th Grade
11 questions
Quiz on variables
Quiz
•
6th - 8th Grade
10 questions
Python Quiz-01
Quiz
•
6th - 10th Grade
10 questions
Delphi Arguments/Returns
Quiz
•
8th - 10th Grade
10 questions
Strings & Integers
Quiz
•
6th - 9th Grade
10 questions
Python
Quiz
•
8th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
10 questions
Identify Slope and y-intercept (from equation)
Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres
Quiz
•
8th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
25 questions
Argumentative Writing & Informational Text Vocabulary Review
Quiz
•
8th Grade
18 questions
Informational Text Vocabulary
Quiz
•
7th - 8th Grade