Python 71-105

Python 71-105

University

35 Qs

quiz-placeholder

Similar activities

Algoritm 2часть

Algoritm 2часть

University

30 Qs

The Advertising World

The Advertising World

University

35 Qs

Chap 11-12

Chap 11-12

University

32 Qs

Extemporaneous Compounding II

Extemporaneous Compounding II

University

35 Qs

Operating Systems (Part 1)

Operating Systems (Part 1)

University

33 Qs

CP midsem2 set 1

CP midsem2 set 1

University

34 Qs

Midterm-Digital Image 38ข้อ

Midterm-Digital Image 38ข้อ

University

38 Qs

INSIAA11, INSIAA12 & INSIAA13

INSIAA11, INSIAA12 & INSIAA13

8th Grade - University

30 Qs

Python 71-105

Python 71-105

Assessment

Quiz

Specialty

University

Medium

Created by

Enjoyer Bro

Used 8+ times

FREE Resource

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a dictionary in Python?

{'key': 'value'}

{key = value}

['key', 'value']

(key, value)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python keyword is used to create a generator?

yield

return

generate

create

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does list.pop() do?

Removes and returns the last item in a list.

Adds an item to the end of a list.

Removes an item by index.

Clears the list.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to check for membership in a sequence?

in

of

has

contains

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print("PYTHON".lower())?

python

PYTHON

Python

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python method is used to replace parts of a string?

replace()

change()

update()

switch()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print(list(range(5))) output?

[0, 1, 2, 3, 4]

[1, 2, 3, 4, 5]

[5, 4, 3, 2, 1]

[0, 1, 2, 3, 4, 5]

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?