Python Assessment Quiz

Python Assessment Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

Python to Access Data Quiz

Python to Access Data Quiz

Professional Development

15 Qs

Java Quiz on Module 1 & 2

Java Quiz on Module 1 & 2

Professional Development

21 Qs

Python 1

Python 1

Professional Development

15 Qs

PYTHON ::04

PYTHON ::04

University - Professional Development

17 Qs

List, dictionary and tuple

List, dictionary and tuple

6th Grade - Professional Development

15 Qs

Intro to Python I Quiz

Intro to Python I Quiz

Professional Development

15 Qs

DATATYPES - INPUT/OUTPUT - OPERATORS

DATATYPES - INPUT/OUTPUT - OPERATORS

Professional Development

24 Qs

Javaquiz

Javaquiz

Professional Development

15 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?