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

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
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
10 questions
KSSM_FORM 4_CHAPTER 11_11.3_
Quiz
•
1st - 12th Grade
15 questions
Acid, Bases and Salt
Quiz
•
10th - 12th Grade
12 questions
KSSM_FORM 4_CHAPTER 11_11.2
Quiz
•
1st - 12th Grade
13 questions
INTERACT GENERAL KNOWLEGE TRIVIA
Quiz
•
7th - 12th Grade
15 questions
Pop Science: DNA
Quiz
•
8th - 12th Grade
15 questions
Physical Science Quiz 4a
Quiz
•
12th Grade
15 questions
Midterm Review: U1 Astronomy
Quiz
•
9th - 12th Grade
20 questions
X IPS 4 TEORI TERJADINYA BUMI PERBAIKAN NILAI
Quiz
•
10th - 12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Science
89 questions
Unit 1 (Ch 2 & 3) Test Review - Water/Ocean Currents
Quiz
•
9th - 12th Grade
10 questions
Natural Resources
Lesson
•
9th - 12th Grade
12 questions
Comparing Mitosis and Meiosis
Lesson
•
9th - 12th Grade
10 questions
Symbiotic Relationships
Lesson
•
9th - 12th Grade
5 questions
Unit 3 AB Check
Quiz
•
9th - 12th Grade
9 questions
Identify Phases and Structures of Mitosis
Quiz
•
9th - 12th Grade
15 questions
Solar System
Lesson
•
9th - 12th Grade
16 questions
Identify Types of Rocks
Quiz
•
9th - 12th Grade