Python Programming Competition

Python Programming Competition

University

12 Qs

quiz-placeholder

Similar activities

Python_MCQ_2

Python_MCQ_2

University

15 Qs

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Mastering Python Control Flow

Mastering Python Control Flow

University

15 Qs

OOP-Q1

OOP-Q1

University

10 Qs

COC (Code Of Challange)

COC (Code Of Challange)

11th Grade - University

15 Qs

Quiz sobre el ornitorrinco y la programación

Quiz sobre el ornitorrinco y la programación

8th Grade - University

15 Qs

Join by Madi

Join by Madi

University

15 Qs

Python_Quiz_1

Python_Quiz_1

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?