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
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
14 questions
New year 10 Python Quiz

Quiz
•
10th Grade
20 questions
Ch.8 - Introducing Python

Quiz
•
6th Grade - Professio...
15 questions
Python for kids and teenagers - Level 1

Quiz
•
10th Grade
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
15 questions
Data Types and Operations

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade