Python Programming Competition

Python Programming Competition

University

12 Qs

quiz-placeholder

Similar activities

Understanding Python Basics

Understanding Python Basics

University

12 Qs

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Quiz 3

Quiz 3

University

12 Qs

Увлекательный мир Python

Увлекательный мир Python

6th Grade - University

9 Qs

Prueba diagnostica

Prueba diagnostica

University

9 Qs

Club Coding Quiz - BCA

Club Coding Quiz - BCA

University

10 Qs

подготовка скл

подготовка скл

University

10 Qs

Компьютерные модели

Компьютерные модели

11th Grade - University

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