Chapter 9 - Chapter 10 Revision Question Python

Chapter 9 - Chapter 10 Revision Question Python

University

45 Qs

quiz-placeholder

Similar activities

JABA!

JABA!

University

41 Qs

Informatika X-2

Informatika X-2

10th Grade - University

50 Qs

Codean Java - Conditional

Codean Java - Conditional

University

48 Qs

Кәсіби ағылшын 201 - 250

Кәсіби ағылшын 201 - 250

University

50 Qs

KELAS 2-REVIEW MATERI INFORMATIKA SM2

KELAS 2-REVIEW MATERI INFORMATIKA SM2

2nd Grade - University

50 Qs

FInal Exam(CC106)

FInal Exam(CC106)

University

40 Qs

REMIDI ASAT INFORMATIKA X

REMIDI ASAT INFORMATIKA X

10th Grade - University

40 Qs

Final Test preparation and recap

Final Test preparation and recap

University

40 Qs

Chapter 9 - Chapter 10 Revision Question Python

Chapter 9 - Chapter 10 Revision Question Python

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Chong May

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?