Python Programming Quiz

Python Programming Quiz

University

25 Qs

quiz-placeholder

Similar activities

Advanced Drone Regulations Quiz

Advanced Drone Regulations Quiz

5th Grade - University

20 Qs

Cuestionario sobre Ataques de Red

Cuestionario sobre Ataques de Red

University

20 Qs

Informatik und Trends UB V

Informatik und Trends UB V

University

20 Qs

YEAR 7 MID-TERM  ASSESSMENT

YEAR 7 MID-TERM ASSESSMENT

7th Grade - University

20 Qs

Ulangan Harian Kelas XI

Ulangan Harian Kelas XI

2nd Grade - University

20 Qs

Preliminary Examination - Web

Preliminary Examination - Web

University

20 Qs

ML Use-Cases Quiz

ML Use-Cases Quiz

University

20 Qs

PTS Informatika Semester 2 2024-2025

PTS Informatika Semester 2 2024-2025

10th 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?