Python Programming Competition

Python Programming Competition

University

12 Qs

quiz-placeholder

Similar activities

Qual a sua próxima certificação?

Qual a sua próxima certificação?

University

15 Qs

COMPILADOR-TECNM

COMPILADOR-TECNM

University

12 Qs

Untitled Quiz

Untitled Quiz

12th Grade - University

10 Qs

Week2 上周知识点回顾

Week2 上周知识点回顾

University

10 Qs

PYTHON APTITUDE

PYTHON APTITUDE

University

12 Qs

Programming for AI & ML Quiz

Programming for AI & ML Quiz

University

10 Qs

Kiến thức về hàm print() trong Python

Kiến thức về hàm print() trong Python

2nd Grade - University

9 Qs

Fundametal DS Training 2025 - Day 2

Fundametal DS Training 2025 - Day 2

University

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