Understanding Python Variables and Data Types
Quiz
•
Other
•
11th Grade
•
Practice Problem
•
Medium
Jean Kracke
Used 17+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to assign an integer value to a variable in Python?
int x = 5
x = 5
x := 5
x == 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data will the variable `name` hold after the following assignment? `name = "Alice"`
Integer
Float
String
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following variables is a float in Python?
age = 17
price = 19.99
is_valid = True
city = "London"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the code `is_raining = False`, what is the data type of `is_raining`?
String
Integer
Boolean
List
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to create a list in Python?
my_list = [1, 2, 3]
my_list = (1, 2, 3)
my_list = {1, 2, 3}
my_list = "1, 2, 3"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the data type of the variable `result` after executing `result = 10 / 2` in Python?
Integer
Float
String
Boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly assigns a string value to a variable?
name = "John"
name = 123
name = True
name = [1, 2, 3]
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
18 questions
Sara's Revenge
Quiz
•
KG - 12th Grade
20 questions
Ramayan & Mahabharat Quiz by Shrey
Quiz
•
6th Grade - University
16 questions
Economic Activities
Quiz
•
11th Grade - University
20 questions
ULANGAN HARIAN OTK HUMAS DAN KEPROTOKOLAN BAB 7 & 8
Quiz
•
11th Grade
20 questions
World Book Day 2020
Quiz
•
KG - Professional Dev...
15 questions
Current Affairs
Quiz
•
8th - 12th Grade
15 questions
Piaget Review
Quiz
•
10th - 12th Grade
15 questions
College Vocabulary 101
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
