
Python Quiz
Authored by Saranya Kumar
Science
12th Grade
15 Questions
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'if else' statement in Python?
To handle exceptions
To create functions
To define a loop
To make decisions based on conditions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module is used for regular expressions in Python?
Array
String
Regex
List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
var x = 5
int x = 5
variable x = 5
x = 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module is used for mathematical operations in Python?
Set
Dictionary
String
Numpy
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'break' statement in Python?
To exit a loop
To handle errors
To skip the current iteration of a loop
To define a function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type in Python is ordered and unchangeable?
Dictionary
Tuple
Set
List
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'lambda' function in Python?
To work with databases
To generate random numbers
To handle file I/O operations
To create anonymous functions
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
17 questions
2nd Summative Test
Quiz
•
12th Grade
14 questions
General knowledge
Quiz
•
2nd - 12th Grade
20 questions
วาเลนไทน์สดใส ลูก พ.น ห่างไกลโควิท 19
Quiz
•
6th - 12th Grade
10 questions
QUIZ ON SCIENCE 6
Quiz
•
6th Grade - University
13 questions
Our Environment
Quiz
•
6th Grade - University
10 questions
Properties of acid
Quiz
•
9th - 12th Grade
12 questions
Plate Tectonics
Quiz
•
10th - 12th Grade
10 questions
IB ESS Reading Check: 1.4, Sustainability
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade