Chapter 9 - Chapter 10 Revision Question Python

Chapter 9 - Chapter 10 Revision Question Python

University

45 Qs

quiz-placeholder

Similar activities

Digital Citizenship and ICT Quiz

Digital Citizenship and ICT Quiz

8th Grade - University

49 Qs

FInal Exam(CC106)

FInal Exam(CC106)

University

40 Qs

PT Prelim Exam

PT Prelim Exam

University

45 Qs

Pre-FINAL EXAM

Pre-FINAL EXAM

University

49 Qs

Soal US Informatika Kelas VII

Soal US Informatika Kelas VII

7th Grade - University

40 Qs

FT1_21ECC3037_Test1

FT1_21ECC3037_Test1

University

40 Qs

Final Exam(WS101)

Final Exam(WS101)

University

45 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

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?