Python Programming Competition

Python Programming Competition

University

12 Qs

quiz-placeholder

Similar activities

Google sheets

Google sheets

7th Grade - University

14 Qs

Počítačová grafika

Počítačová grafika

6th Grade - University

10 Qs

BASIC PC COMPONENTS AND TROUBLESHOOTING  - BATCH 1

BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1

University

15 Qs

Мәтінді форматтау

Мәтінді форматтау

10th Grade - University

10 Qs

Quiz 1 - Sistem Informasi Bisnis

Quiz 1 - Sistem Informasi Bisnis

University

10 Qs

Fundamentals

Fundamentals

7th Grade - University

12 Qs

TIK-REKAM MEDIS

TIK-REKAM MEDIS

University

10 Qs

Python Programming Competition

Python Programming Competition

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Darren Hong

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?