
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
14 questions
seguridad pag 27 y 28 de tema 7

Quiz
•
8th - 10th Grade
15 questions
Actividad #1 - Programación 4tos - 2B 2021

Quiz
•
1st - 12th Grade
10 questions
Start game 8

Quiz
•
8th Grade
10 questions
INTRODUCCION A LA PROGRAMACION

Quiz
•
6th Grade - University
10 questions
JavaScript basics (vidcode, BR JSDJ Day 1)

Quiz
•
5th - 12th Grade
13 questions
Orange Belt Level 1

Quiz
•
6th - 8th Grade
10 questions
Python

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

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade