
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
5 questions
List and tuple in python

Quiz
•
7th - 8th Grade
14 questions
QUIZ 3 (Class 8)

Quiz
•
8th Grade
5 questions
Understanding 2D Lists in Python

Quiz
•
8th Grade
10 questions
Start game 8

Quiz
•
8th Grade
13 questions
Orange Belt Level 1

Quiz
•
6th - 8th Grade
11 questions
Coding Quiz

Quiz
•
6th - 8th Grade
15 questions
Güvenli İnternet

Quiz
•
1st Grade - University
6 questions
Diagnósticos sobre C++ noveno

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade