
Python Quiz
Authored by a Kalyani
Professional Development
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will raise a SyntaxError?
A) print "Hello"
B) print("Hello")
C) print(Hello)
D) print('Hello')
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? x = 10 y = 20 x, y = y, x print(x, y)
A) 10 20
B) 20 10
C) 10 10
D) 20 20
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? a = "Hello" b = a.lower() print(b)
A) HELLO
B) Hello
C) hello
D) HeLLo
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to import a module in Python?
A) import module
B) include module
C) using module
D) require module
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following statements is true about Python?
A) Python is a high-level programming language.
B) Python is an interpreted language.
C) Python is an object-oriented language.
D) All of the above.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start a Python function?
A) def function_name():
B) function function_name():
C) func function_name():
D) define function_name():
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to handle exceptions in Python?
A) try and except
B) catch and throw
C) do and while
D) try and finally
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
20 questions
Tidal Energy
Quiz
•
5th Grade - Professio...
20 questions
Banking Quiz
Quiz
•
12th Grade - University
19 questions
Heath and Safety In Animal Care
Quiz
•
8th Grade - Professio...
20 questions
Các hoạt động cơ bản giai đoạn chuẩn bị sự kiện
Quiz
•
8th - 12th Grade
20 questions
Nivelele manageriale și stiluri de management
Quiz
•
12th Grade
20 questions
QUIZ 1 : TOPIC 8 [PROCESS COSTING]
Quiz
•
1st Grade - University
20 questions
2021 GANJIL TDO KLS X TKRO
Quiz
•
12th Grade
15 questions
Quizz Antidotos y Farmacovigilancia
Quiz
•
1st - 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Professional Development
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade