Python 71-105

Python 71-105

University

35 Qs

quiz-placeholder

Similar activities

AIJ

AIJ

KG - Professional Development

33 Qs

Algoritm 4часть

Algoritm 4часть

University

30 Qs

Demon Slayer Trivia

Demon Slayer Trivia

KG - Professional Development

32 Qs

PRESENT RELEVANT INFORMATION

PRESENT RELEVANT INFORMATION

University

40 Qs

Electric File Quiz

Electric File Quiz

11th Grade - University

40 Qs

Ôn tập Hsg K8

Ôn tập Hsg K8

8th Grade - University

36 Qs

CHFI Module 6 Review

CHFI Module 6 Review

University

30 Qs

Belajar Bersama Dzikri

Belajar Bersama Dzikri

University

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