Python Lists

Python Lists

Professional Development

50 Qs

quiz-placeholder

Similar activities

TVMI BASIC GRADING

TVMI BASIC GRADING

Professional Development

50 Qs

GCC Final - Chinmaya Mission Bhavnagar

GCC Final - Chinmaya Mission Bhavnagar

Professional Development

50 Qs

Daniel Quiz Final

Daniel Quiz Final

Professional Development

51 Qs

TO 50 soal

TO 50 soal

Professional Development

50 Qs

SOAL TES KPPS PEMILU 2024 DESA KALIBATUR

SOAL TES KPPS PEMILU 2024 DESA KALIBATUR

Professional Development

50 Qs

SY0-501 Practice Quiz 8

SY0-501 Practice Quiz 8

Professional Development

50 Qs

Revision CCEP

Revision CCEP

Professional Development

50 Qs

Endocrine Physiology

Endocrine Physiology

University - Professional Development

50 Qs

Python Lists

Python Lists

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

Ajay Tech

Used 89+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an empty list in python

[ ]

{ }

( )

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

How to create a new empty list in python

[ ]

list ( )

list.init( )

create.list ( )

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

grades = [2.0, 3.0, 4.0]


Which of the following code can be used to iterate over the grades list ?

for grade in grades :

# todo

i = 0

while i < len(grades) :

#todo

i = i + 1

[print ( i ) for i in grades]

for i, grade in enumerate(grades) :

# todo

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

grades = [2.0, 3.0, 4.0]


How do you get the length of the list above

len(grades)

length(grades)

list.length(grades)

list.len(grades)

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

a = [ 1, 3, 5 ]

b = [ 7, 9, 11 ]


How do you merge these two lists ?

a + b

a.extend(b)

a.merge(b)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]


numbers [-3]


What is numbers [-3]

8

9

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

numbers = [1,2,3,4,5,6,7,8,9,10]


print ( numbers[-3] == numbers[7])


The output of the program above is

True

False

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?