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
30 questions
Python Basics

Quiz
•
8th - 10th Grade
21 questions
Unit 09 - QBASIC

Quiz
•
6th Grade
25 questions
Python. Переменные, типы данных

Quiz
•
6th Grade
20 questions
BASIC STATMENT AND BUILT-IN FUNCTION

Quiz
•
8th Grade
20 questions
For vs While

Quiz
•
8th - 10th Grade
26 questions
Y8 - SUM2 - Intro to Python (No Iteration)

Quiz
•
8th Grade
20 questions
Python Basics

Quiz
•
7th Grade
20 questions
Introduction to Python programming

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade