Python Assessment Quiz

Python Assessment Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

Python basics

Python basics

Professional Development

22 Qs

Arduino IDE

Arduino IDE

3rd Grade - Professional Development

17 Qs

Variable Scope in Python

Variable Scope in Python

1st Grade - Professional Development

15 Qs

Python Programming Quiz

Python Programming Quiz

Professional Development

20 Qs

Basic of Programming - Quiz 02

Basic of Programming - Quiz 02

University - Professional Development

15 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Exceptions and Classes

Exceptions and Classes

Professional Development

21 Qs

PL SQL

PL SQL

University - Professional Development

20 Qs

Python Assessment Quiz

Python Assessment Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

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

Media Image

What is the output of the following code?

int

float

complex

str

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?