Chapter 9 - Chapter 10 Revision Question Python

Chapter 9 - Chapter 10 Revision Question Python

University

45 Qs

quiz-placeholder

Similar activities

UTS - Pemrograman Pyton

UTS - Pemrograman Pyton

University

50 Qs

Quiztronic

Quiztronic

University

40 Qs

35-77

35-77

University

43 Qs

Питон 1-50

Питон 1-50

University

50 Qs

DSA Quiz # 1

DSA Quiz # 1

University

50 Qs

Kuis Pemrograman Python

Kuis Pemrograman Python

University

50 Qs

Програмування

Програмування

University

45 Qs

Câu hỏi về lập trình và tự động hóa

Câu hỏi về lập trình và tự động hóa

University

49 Qs

Chapter 9 - Chapter 10 Revision Question Python

Chapter 9 - Chapter 10 Revision Question Python

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Chong May

Used 44+ times

FREE Resource

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

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?

Discover more resources for Information Technology (IT)