
Python Assessment Quiz

Quiz
•
Computers
•
Professional Development
•
Hard

Adam Gijebi
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following tools can be used to run Python programs?
Python Interpreter
Jupyter Notebook
IDE (e.g., PyCharm, VSCode)
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the output of the following code?
int
float
complex
str
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will the following code print?
ytho
yth
Pyt
Py
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which of the following is NOT a valid operation for a Python dictionary?
Adding a new key-value pair
Updating a value for an existing key
Deleting a key-value pair
Slicing the dictionary
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What will be the output of the following code?
0 1 2
0 1
1 2
0 2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
function
def
lambda
func
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the purpose of the finally block in exception handling?
It runs only if no exception occurs.
It is used to raise an exception.
It executes regardless of whether an exception occurred or not.
It is a synonym for the else block.
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
C-1 CHAPTER-3

Quiz
•
Professional Development
24 questions
Java Chapter 11 Review Questions

Quiz
•
Professional Development
15 questions
Ojo's Python Class 2

Quiz
•
Professional Development
19 questions
While|For

Quiz
•
Professional Development
21 questions
CÂU LỆNH WHILE

Quiz
•
Professional Development
15 questions
DBMS Quizzz....!

Quiz
•
Professional Development
24 questions
Unit4_Servlets_Exam1

Quiz
•
Professional Development
19 questions
Python Basic

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade