Python MCQ

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Alijon Kuvondikov
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Python primarily used for?
Only web development
Only data analysis
Multiple purposes like web development, data analysis, AI, etc.
Only game development
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you skip indentation in Python?
The code still runs
It adds a tab automatically
You get a syntax error
It becomes a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an item to the end of a list?
list.add()
list.append()
list.insert()
list.extendLast()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to write a comment in Python?
// This is a comment
# This is a comment
/* This is a comment */
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a Python data type?
list
tuple
array
dict
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does for i in range(0): print(i) output?
0
None
Nothing
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of: x = 5 if x > 2: print("A") elif x > 3: print("B") else: print("C")
A
B
C
A B
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
แบบทดสอบวิชาวิทยาการคำนวณ2

Quiz
•
7th Grade
22 questions
Python for Beginners (Module 1)

Quiz
•
7th Grade
20 questions
7-D Computer Quiz

Quiz
•
7th Grade
20 questions
Year 7 - End of Unit

Quiz
•
7th - 8th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
20 questions
Basics Python

Quiz
•
8th - 10th Grade
20 questions
Year 8 Python -input-output-selection

Quiz
•
8th - 9th Grade
20 questions
End of year quiz: Small Basic

Quiz
•
7th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade