Python List and Tuples

Python List and Tuples

Assessment

Flashcard

Computers

Professional Development

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

14 questions

Show all answers

1.

FLASHCARD QUESTION

Front

If list=[17,23,41,10] then list.append(32) will result

Back

[17,23,41,10,32]

2.

FLASHCARD QUESTION

Front

Which python function can be used to add more than one element within an existing list? Options: append( ), append_more( ), extend( ), more( )

Back

extend( )

3.

FLASHCARD QUESTION

Front

What output will this code produce? Options: red, ['blue', 'green', 'red'], ['red', 'green', 'blue'], error

Back

['red', 'green', 'blue']

4.

FLASHCARD QUESTION

Front

What is the output of the following list operation
aList = [10, 20, 30, 40, 50, 60, 70, 80]
print(aList[2:5])
print(aList[:4])
print(aList[3:])

Back

[30, 40, 50]
[10, 20, 30, 40]
[40, 50, 60, 70, 80]

5.

FLASHCARD QUESTION

Front

In Python, list is mutable

Back

True

6.

FLASHCARD QUESTION

Front

___________method adds a single item to the end of the list.

Back

append( )

7.

FLASHCARD QUESTION

Front

What is the value of list1 when the statement, list1+=list2 is executed?

Back

[10, 20, 30, 40, 15, 25, 35, 45]

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?