What is a correct way to declare a Python variable?
Python

Quiz
•
Computers
•
10th Grade
•
Hard
MIZANUL HAKIM
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
_x = 5
2 x = 5
2.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
True or False:
You can declare string variables with single or double quotes.
x = "Sma Muhammadiyah 8 Ciputat"
# is the same as
x = 'Sma Muhammadiyah 8 Ciputat'
False
3.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
True or False:
Variable names are not case-sensitive.
x = 7
# is the same as
X = 7
False
True
4.
DRAG AND DROP QUESTION
20 sec • 4 pts
Select the correct functions to print the data type of a variable:
(a) ( (b) ( variabel))
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
If name = "indah", what is a correct syntax for printing the data type of the variable name?
6.
FILL IN THE BLANK QUESTION
20 sec • 2 pts
I have a variable and I want to print its data type, what is the data type of the variable?
data = "Andriano M. Daffa"
7.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What will be the result of the following code:
x1 = 90.597
x2 = int(x1)
print(str(x2))
90.597
90,597
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
String Manipulation

Quiz
•
9th - 11th Grade
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
16 questions
algorithms and programming

Quiz
•
8th - 10th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
20 questions
Basics Python

Quiz
•
8th - 10th Grade
19 questions
Unit 3 Python Minor assessment

Quiz
•
10th - 12th Grade
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University