
QUIZZ TENTANG VARIABEL PADA PYTHON MATA PELAJARAN DDK PPLG
Authored by Agustina Diun
Other
10th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A type of conditional statement in Python
A type of loop in Python
A built-in function in Python
A container for storing data values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
Using the var keyword
Using the declare keyword
Using the let keyword
Variables are created when you first assign a value to them
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of x = 4 followed by x = 'Sally'?
x is now of type float
x is now of type int
x is now of type bool
x is now of type str
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function str(3) do?
Converts 3 to a string
Converts 3 to a float
Converts 3 to an integer
Converts 3 to a boolean
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you get the data type of a variable in Python?
Using the typeof() function
Using the type() function
Using the gettype() function
Using the datatype() function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about variable names in Python?
Variable names are not case sensitive
Variable names must start with a number
Variable names can contain special characters
Variable names are case sensitive
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the naming convention for variables with multiple words where each word starts with a capital letter?
Kebab Case
Snake Case
Pascal Case
Camel Case
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?