Chapter 9 - Chapter 10 Revision Question Python

Chapter 9 - Chapter 10 Revision Question Python

University

45 Qs

quiz-placeholder

Similar activities

Chapter 1 to Chapter 5 python

Chapter 1 to Chapter 5 python

University

45 Qs

Python Programming Quiz

Python Programming Quiz

University

49 Qs

FInal Exam(CC106)

FInal Exam(CC106)

University

40 Qs

Final Test preparation and recap

Final Test preparation and recap

University

40 Qs

Kuis Pemrograman Python

Kuis Pemrograman Python

University

50 Qs

Python 3

Python 3

University

42 Qs

UTS - Pemrograman Pyton

UTS - Pemrograman Pyton

University

50 Qs

35-77

35-77

University

43 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 6+ 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?