
Python Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
Rupinder Kaur
Used 1+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to comment multiple lines in Python?
//
/* */
''' '''
#
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the range() function in Python do?
Generates a sequence of numbers
Calculates the factorial of a number
Rounds a floating-point number to the nearest integer
Returns the absolute value of a number
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an IDE (Integrated Development Environment) for Python?
PyCharm
Atom
Visual Studio Code
Django
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm works by repeatedly swapping adjacent elements if they are in the wrong order?
Quick Sort
Merge Sort
Bubble Sort
Insertion Sort
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the __init__ method in Python classes?
To initialize class variables
To define instance methods
To destroy objects
To inherit from a parent class
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a breakpoint in debugging?
To terminate the program
To pause the program's execution at a specific point
To print a message to the console
To run the program in reverse
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to remove duplicates from a list in Python?
unique()
remove_duplicates()
distinct()
set()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Sorting Algorithms

Quiz
•
12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
13 questions
Writing files in python

Quiz
•
9th - 12th Grade
12 questions
Quiz Input Python

Quiz
•
12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
15 questions
Javascript

Quiz
•
10th - 12th Grade
15 questions
PCEP Section 1A: Understand fundamental terms and definitions

Quiz
•
12th Grade
20 questions
Computer Applications

Quiz
•
9th - 12th 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
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade