Python Lists - TICT Unit Review Lessons 1 - 3

Python Lists - TICT Unit Review Lessons 1 - 3

8th Grade

15 Qs

quiz-placeholder

Similar activities

Python basics

Python basics

2nd - 9th Grade

20 Qs

Prog F: Quiz 1 Revision

Prog F: Quiz 1 Revision

6th - 8th Grade

20 Qs

Python list

Python list

8th Grade

20 Qs

Programming Techniques Survey

Programming Techniques Survey

8th - 12th Grade

19 Qs

Arrays

Arrays

KG - University

10 Qs

App Creators Lesson 2.1-2.4

App Creators Lesson 2.1-2.4

8th Grade

10 Qs

Python L1 Quiz 4: Lists

Python L1 Quiz 4: Lists

1st - 12th Grade

10 Qs

Python Lists

Python Lists

8th - 9th Grade

10 Qs

Python Lists - TICT Unit Review Lessons 1 - 3

Python Lists - TICT Unit Review Lessons 1 - 3

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Ian Stuckey

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the append method in Python lists?
To delete the last item of the list
To add an item to the end of the list
To insert an item at a specified index
To modify an existing item in the list

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the index number in a Python list represent?
The value of the item in the list
The position of the item, starting from 1
The position of the item, starting from 0
The method to modify an item

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert an item at a specific position in a list in Python?
listname.append(‘text’)
listname.remove(‘text’)
listname.insert(index, ‘text’)
del listname[index]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to remove an item from a Python list by its value?
listname.pop(‘text’)
listname.append(‘text’)
listname.remove(‘text’)
listname.delete(‘text’)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To delete an item in a Python list by its index, which command would you use?
remove(index)
delete(listname[index])
listname.remove(index)
del listname[index]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following Python list operation do? listname[0] = ‘hiking’
Appends ‘hiking’ to the list
Inserts ‘hiking’ at the start of the list
Modifies the first item of the list to ‘hiking’
Checks if ‘hiking’ is the first item in the list

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does print(len(listname)) display?
Prints all items in the list
Prints the last item in the list
Counts and prints the number of items in the list
Finds and prints the longest item in the list

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?