
Python Variable - Quiz
Authored by Hafiz Putra
Information Technology (IT)
7th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What is a correct way to declare a Python variable?
var x = 5
#x = 5
$x = 5
x = 5
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
True or False:
You can declare string variables with single or double quotes.
x = "John"
# is the same as
x = 'John'
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
True or False:
Variable names are not case-sensitive.
a = 5
# is the same as
A = 5
4.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Select the correct functions to print the data type of a variable:
............(type(myvar))
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Which is NOT a legal variable name?
my-var = 20
my_var = 20
Myvar = 20
_myvar = 20
6.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Create a variable named carname and assign the value Honda to it.
carname = ........
7.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Create a variable named x and assign the value 50 to it.
Access all questions and much more by creating a free account
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
10 questions
Permainan Jump di Scratch
Quiz
•
7th Grade
10 questions
Operators Quiz
Quiz
•
7th Grade
10 questions
TES MATERI FAKTA DAN OPINI
Quiz
•
7th Grade
12 questions
Ulangkaji ASK
Quiz
•
6th - 8th Grade
5 questions
Kuis Mengenali Data Dan Informasi
Quiz
•
7th Grade
5 questions
Quiz de la Semana 02
Quiz
•
2nd Grade - University
10 questions
kt15 - Tin 7 - HKII - L1
Quiz
•
7th Grade
10 questions
formativa 7
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
20 questions
Ethos, Pathos, Logos Practice
Quiz
•
6th - 7th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Main Idea and Supporting Details
Quiz
•
7th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade