Python Programming Quiz

Python Programming Quiz

University

25 Qs

quiz-placeholder

Similar activities

LONG QUIZ MIS

LONG QUIZ MIS

University

20 Qs

Uji Pengetahuan Teknologi Informasi

Uji Pengetahuan Teknologi Informasi

12th Grade - University

20 Qs

Database quiz part 1 - D2T4

Database quiz part 1 - D2T4

University

20 Qs

การแข่งขัน AI Tools for Education ระดับ ม.ปลาย

การแข่งขัน AI Tools for Education ระดับ ม.ปลาย

10th Grade - University

20 Qs

KUIZ DIAGNOSTIK

KUIZ DIAGNOSTIK

11th Grade - University

20 Qs

Soal Ulangan Internet 8.7

Soal Ulangan Internet 8.7

8th Grade - University

20 Qs

E5-1 Data Processing  CE2

E5-1 Data Processing CE2

9th Grade - University

21 Qs

Kuis Ms Word 1

Kuis Ms Word 1

7th Grade - University

20 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

Thanh Sơn Phạm

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output?

Pythonawesome is fun

Python is awesome

Pythonaweome is fun

Python3 is awesome

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions opens a file for reading and writing without truncating the file?

open('file.txt', 'w')

open('file.txt', 'r+')

open('file.txt', 'a')

open('file.txt', 'wb')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code print?

1 3

2 4

1 2

3 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of the following code?

10

15

20

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

{'a': 1, 'b': 2, 'c': 3}

{'b': 2, 'c': 3}

{'a': 1, 'c': 3}

{'a': 1, 'b': 2}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of this code?

HellO WOrld

Hello World

Hello WOrld

HellO WOrlD

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output?

60

30

10

50

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?