Search Header Logo

Chapter 9 - Chapter 10 Revision Question Python

Authored by Chong May

Information Technology (IT)

University

Used 44+ times

Chapter 9 - Chapter 10 Revision Question Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a list in Python?

list = (1, 2, 3)

list = {1, 2, 3}

list = [1, 2, 3]

list = <1, 2, 3>

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the index of the first element in a list?

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What does len([1, 2, 3, 4]) return?

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an item at the end of a list?

add()

insert()

append()

extend()

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What will be the output of this code?

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of list(range(1, 5))?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does my_list[-1] return?

First item

Last item

Middle item

Error

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?