Python Programming Competition

Python Programming Competition

University

12 Qs

quiz-placeholder

Similar activities

CodeQuest TechTopia 2025-26

CodeQuest TechTopia 2025-26

University

11 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Quizzi bài 29 Tin học 10

Quizzi bài 29 Tin học 10

10th Grade - University

10 Qs

Selection Programming_If condition

Selection Programming_If condition

8th Grade - University

15 Qs

Quiz 2

Quiz 2

University

10 Qs

Preguntas sobre Python

Preguntas sobre Python

University

10 Qs

Python Programming Quiz

Python Programming Quiz

University

13 Qs

Quiz Meet 3 Mini SC Programing

Quiz Meet 3 Mini SC Programing

University

10 Qs

Python Programming Competition

Python Programming Competition

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Darren Hong

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What is the output of the following code?

[1] [2] [3]

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

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

[1] [2] [3]

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What will be the output of the following code?

[1, 2, 3], [1, 2, 3, 4]

[1, 2, 3]

[1, 2, 3, 4]

Error

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What will be the output of the following Python expression?

(1, 2, 1, 2, 1, 2)

`(1, 2, 1, 2, 1, 2)`

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

Error

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following statements about tuples is False?

Tuples are immutable.

Tuples can contain elements of different types.

Tuples can be modified after creation.

Tuples support indexing.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What does the following generator function return when called as list(gen())?

[0, 1, 2]

[0, 1, 2]

generator object

None

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which built-in function is used to apply a function to all elements in an iterable?

filter()

map()

apply()

reduce()

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

Will the following code produce an error?

Yes

No

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?

Discover more resources for Information Technology (IT)