
Python Variable Declaration Quiz

Quiz
•
Instructional Technology
•
8th Grade
•
Hard
Ashok Adhikari
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is a variable in Python?
A reserved word in Python
It is a name given to a value.
A function that takes one or more arguments and returns a value
A module in Python
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which of the following is a valid variable name in Python?
1var
var-1
var_1
var 1
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
The data type of the variable "x" in the code x = "False"
String
Integer
Float
Boolean
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which of the following is not a valid data type in Python?
Integer
Float
Character
Boolean
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the output of the following code? x = 5 y = "10" print(x + y)
15
510
TypeError: unsupported operand type(s) for +: 'int' and 'str'
None of the above
6.
FILL IN THE BLANK QUESTION
1 min • 4 pts
Common built-in data types in Python include __________, __________, __________, and __________.
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Values are assigned to variables using the __________ operator.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
PYTHON BASIC

Quiz
•
6th - 8th Grade
10 questions
Python Lists

Quiz
•
8th Grade
7 questions
final quiz

Quiz
•
8th - 9th Grade
7 questions
Variables and Expressions

Quiz
•
6th - 10th Grade
10 questions
INTRODUCCION A LA PROGRAMACION

Quiz
•
6th Grade - University
14 questions
seguridad pag 27 y 28 de tema 7

Quiz
•
8th - 10th Grade
13 questions
2.5 Translators & Facilities - OCR GCSE Computer Science

Quiz
•
7th - 12th Grade
13 questions
TEKNOLOJİ VE TASARIMIN TEMELLERİ

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Fast Food Slogans

Quiz
•
6th - 8th Grade
10 questions
Parallel Lines Cut by a Transversal

Quiz
•
8th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
4 questions
End-of-month reflection

Quiz
•
6th - 8th Grade