Python Lists - TICT Unit Review Lessons 1 - 3

Python Lists - TICT Unit Review Lessons 1 - 3

8th Grade

15 Qs

quiz-placeholder

Similar activities

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Technology trends

Technology trends

7th - 12th Grade

15 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

Module 4 Revision

Module 4 Revision

2nd - 8th Grade

10 Qs

Working with tables

Working with tables

5th - 12th Grade

10 Qs

Python Lists - TICT Unit Review Lessons 1 - 3

Python Lists - TICT Unit Review Lessons 1 - 3

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Ian Stuckey

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?