Search Header Logo
List methods

List methods

Assessment

Presentation

Other, Computers

KG

Medium

Created by

Akniyet Sarsenbek

Used 14+ times

FREE Resource

7 Slides • 16 Questions

1

List methods

By Akniyet Sarsenbek

2

Learning objectives

11.2.3.3apply functions and methods of processing lists;

11.4.3.2 solve applied problems of various subject areas.​

Subject | Subject

Some text here about the topic of discussion

3

Check yourself. Get ready for quiz.

Some text here about the topic of discussion

4

Multiple Choice

What are the Python keywords used to construct a loop to iterate through a list?

1

foreach / in

2

try / except

3

def / return

4

for / in

5

Multiple Choice

For the following list, how would you print out 'Sally'?

friends = [ 'Joseph', 'Glenn', 'Sally' ]

1

print friends[3]

2

print(friends[2:1])

3

print(friends['Sally'])

4

print(friends[2])

6

Multiple Choice

What would the following Python code print out?

print(fruit)

1

banana

2

Banana

3

Nothing would print - the program fails with a traceback error

4

B

7

Multiple Choice

Which of the following Python statements would print out the length of a list stored in the variable data?

1

print(len(data))

2

print(strlen(data))

3

print(length(data))

4

print(data.length())

8

Multiple Choice

What type of data is produced when you call the range() function?

1

A list of characters

2

A list of words

3

A string

4

A list of integers

9

Multiple Choice

What does the following Python code print out?

a = [1, 2, 3]

b = [4, 5, 6]

c = a + b

print(len(c))

1

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

2

6

3

[4, 5, 6]

4

15

10

Multiple Choice

Which of the following slicing operations will produce the list [12, 3]?

t = [9, 41, 12, 3, 74, 15]

1

t[2:4]

2

t[2:2]

3

t[1:3]

4

t[12:3]

11

Multiple Choice

What list method adds a new item to the end of an existing list?

1

add()

2

forward()

3

push()

4

append()

12

List methods

media

13

List methods

media

14

Open the link to learn more about the list methods

https://www.w3schools.com/python/python_lists_methods.asp​

Some text here about the topic of discussion

Self study

15

Fill in the Blanks

media image

Type answer...

16

Fill in the Blanks

media image

Type answer...

17

Fill in the Blanks

media image

Type answer...

18

Fill in the Blanks

media image

Type answer...

19

Fill in the Blanks

media image

Type answer...

20

Fill in the Blanks

media image

Type answer...

21

Fill in the Blanks

media image

Type answer...

22

Fill in the Blanks

media image

Type answer...

23

Problems to solve

Subject | Subject

Some text here about the topic of discussion

List methods

By Akniyet Sarsenbek

Show answer

Auto Play

Slide 1 / 23

SLIDE