
Python_Variables
Quiz
•
English
•
University
•
Practice Problem
•
Hard
Deekshitha K
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following is not a valid variable name in Python?
a) my_variable
b) 123_variable
c) myvariable
d) myVariable
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following is not a valid data type in Python?
a) int
b) 123_float
c) str
d) bool
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the output of the following Python code snippet?
print(10/3)
a) 3.333
b) 3
c) 3.0
d) 3.33
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following is the correct way to comment a single line in Python?
a) // This is a comment
b) # This is a comment
c)
d) /* This is a comment */
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python code snippet?
print(5**2)
a) 10
b) 25
c) 7
d) 52
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is a correct way to declare a list in Python?
a) list = [1, 2, 3]
b) list = (1, 2, 3)
c) list = {1, 2, 3}
d) list = {1: 'one', 2: 'two', 3: 'three'}
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the result of the following comparison in Python?
5 == 5.0
a) True
b) False
c) Error
d) None
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
U10AjarnNan
Quiz
•
University
12 questions
like, alike, as
Quiz
•
12th Grade - University
10 questions
EAP 4: Week 1 Checkpoint
Quiz
•
University
10 questions
Review Unit 5
Quiz
•
University
11 questions
Can/Cant (reading comprehension)
Quiz
•
12th Grade - University
13 questions
Touchstone 7- Unit 8
Quiz
•
University
13 questions
TA 2.1- Simple present- Affirmative
Quiz
•
University
10 questions
CAN - CAN'T
Quiz
•
University
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
