
Python Variable - Quiz
Quiz
•
Information Technology (IT)
•
7th Grade
•
Practice Problem
•
Hard
Hafiz Putra
Used 2+ times
FREE Resource
Enhance your content in a minute
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.
8.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What is a correct syntax to add the value 'Hello World', to 3 variables in one statement?
x, y, z = 'Hello World'
x = y = z = 'Hello World'
x|y|z = 'Hello World'
9.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Insert the correct syntax to assign values to multiple variables in one line:
x........y= "Orange", "Banana"
Similar Resources on Wayground
10 questions
Computer Fundamentals Quiz
Quiz
•
7th Grade
12 questions
Разветвляющиеся алгоритмы в Python
Quiz
•
7th Grade
10 questions
Ch9檔案與例外處理-綜合演練選擇題
Quiz
•
6th - 8th Grade
10 questions
Scratch - základy
Quiz
•
6th Grade - University
6 questions
Limbaj_programare_3(date si expresii)
Quiz
•
6th - 8th Grade
11 questions
II Trimestre Grade 7°
Quiz
•
7th Grade
10 questions
7ci sinif 2024
Quiz
•
7th Grade
10 questions
Разветвляющиеся алгоритмы в Python
Quiz
•
7th 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 Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
12 questions
Hallway & Bathroom Expectations
Lesson
•
6th - 8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Christmas Movie Trivia
Quiz
•
7th Grade
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
10 questions
Exploring Christmas Traditions Through Cartoons
Interactive video
•
6th - 10th Grade
