Python Quiz

Python Quiz

University

12 Qs

quiz-placeholder

Similar activities

Python Quiz 5

Python Quiz 5

University

10 Qs

Day1

Day1

University

10 Qs

Section A Past Year Exam

Section A Past Year Exam

University

10 Qs

Python ir Colab

Python ir Colab

University

17 Qs

Cours 4-Fichiers

Cours 4-Fichiers

University

7 Qs

Python - Introduction

Python - Introduction

University

13 Qs

Fundamentos de Programación en Python

Fundamentos de Programación en Python

University

9 Qs

File Handling in Python, Serialization in Python

File Handling in Python, Serialization in Python

University

15 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Yaseera Anware

Used 31+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword allows us to load a module in Python?

Import

Load

Include

Library

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

print(2**3 + (5 + 6)**(1 + 1))

8

121

129

127

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a code block indicated in Python?

Brackets

Indentation

Key pair

colon

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Media Image

What will be the output of the following code snippet?

Infinite Loop

0 3 6 9 12

0 3 6 9 12 15

0 2 3 ... 15

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following types of loops are not supported in Python?

do while

while

for

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = [1, 2]

print(a * 3)

Error

[1,2]

[1,2,1,2]

[1,2,1,2,1,2]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All keywords in Python are in _________

Capitalized

lowercase

UPPERCASE

NONE MENTIONED

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?