
Python Quiz

Quiz
•
Professional Development
•
12th Grade
•
Medium
a Kalyani
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Basic 2 Python

Quiz
•
12th Grade - Professi...
15 questions
Formatting Tables Quiz

Quiz
•
5th - 12th Grade
20 questions
PART 2: PRODUCT SAFETY & DEFENSE IN WAREHOUSING & DISTRIBUTION

Quiz
•
3rd Grade - University
16 questions
AP1 Paper 2 Computer Science

Quiz
•
12th Grade
17 questions
Bức tranh của em gái tôi

Quiz
•
1st - 12th Grade
15 questions
CUỘC THI TIẾNG ANH THCS

Quiz
•
12th Grade - University
20 questions
Ulangan Harian Penanganan Linen

Quiz
•
12th Grade
15 questions
ĐỐ VUI THÁNG 10

Quiz
•
5th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Professional Development
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade