Python 71-105

Python 71-105

University

35 Qs

quiz-placeholder

Similar activities

Quiz Ujian Akhir Semester

Quiz Ujian Akhir Semester

University

30 Qs

Information Theory 121-152

Information Theory 121-152

University

32 Qs

Competition for FSSC Internal Auditor

Competition for FSSC Internal Auditor

9th Grade - University

37 Qs

Câu hỏi về Microsoft Word

Câu hỏi về Microsoft Word

University

31 Qs

CP midsem2 set 2

CP midsem2 set 2

University

34 Qs

Workplace Safety Hazard Communication Topic-6

Workplace Safety Hazard Communication Topic-6

University

34 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

40 Qs

Growth Mindset

Growth Mindset

6th 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

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?