Python

Python

University

10 Qs

quiz-placeholder

Similar activities

Q5 - ICT2

Q5 - ICT2

University

10 Qs

General Ict Quiz

General Ict Quiz

4th Grade - University

15 Qs

ELEMENTOS BÁSICOS DE UN PROYECTO DE INVERSIÓN - GRUPO 4

ELEMENTOS BÁSICOS DE UN PROYECTO DE INVERSIÓN - GRUPO 4

University

11 Qs

SO-750

SO-750

University

10 Qs

Mayor, menor o igual

Mayor, menor o igual

KG - University

10 Qs

Python List

Python List

4th Grade - University

15 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Let's Play Together

Let's Play Together

University - Professional Development

10 Qs

Python

Python

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

NANCY P

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

append() is used to add new elements at which position in a list?

begin

middle

end

None

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Lists are mutable

Yes

No

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

my_list = ["hello", "world", "hi", "bye"]

What will be the output of

print(my_list[-1])?

"hello"

"world"

"hi"

"bye"

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following list function?

sampleList = [10, 20, 30, 40, 50]

sampleList.pop()

print(sampleList)


sampleList.pop(2)

print(sampleList)

[20, 30, 40, 50]

[10, 20, 40]

[10, 20, 30, 40]

[10, 20, 30, 50]

[10, 20, 30, 40]

[10, 20, 40]

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following list assignment?

aList = [4, 8, 12, 16]

aList[1:4] = [20, 24, 28]

print(aList)

[4, 20, 24, 28, 8, 12, 16]

[4, 20, 24, 28]

[4,8,12,16,20,24,28]

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

list1 = ['xyz', 'zara', 'PYnative']

print (max(list1))

PYnative

zara

xyz

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following?

aList = [5, 10, 15, 25]

print(aList[::-2])

[15, 10, 5]

[10, 5]

[25, 10]

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?

Discover more resources for Computers