Python 71-105

Python 71-105

University

35 Qs

quiz-placeholder

Similar activities

203 Electrical Installations Technology

203 Electrical Installations Technology

11th Grade - Professional Development

30 Qs

1.1: Understand Health and Safety Roles and Responsibilities

1.1: Understand Health and Safety Roles and Responsibilities

12th Grade - Professional Development

30 Qs

Job search

Job search

12th Grade - University

40 Qs

Unit 2 Fundamentals of CS

Unit 2 Fundamentals of CS

12th Grade - University

36 Qs

н2сб 3/5

н2сб 3/5

University

30 Qs

Salon Pathogens

Salon Pathogens

10th Grade - Professional Development

40 Qs

PG admin

PG admin

University

38 Qs

AP World History Ch 15

AP World History Ch 15

9th Grade - University

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