Python lists

Python lists

9th Grade - Professional Development

7 Qs

quiz-placeholder

Similar activities

Q2 - Python

Q2 - Python

University

10 Qs

Computer Network

Computer Network

University

10 Qs

Repaso bimestral geometría 2b

Repaso bimestral geometría 2b

Professional Development

9 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

Culture Talk Series

Culture Talk Series

Professional Development

10 Qs

APCS-01-01 - History

APCS-01-01 - History

10th - 12th Grade

10 Qs

KT 4

KT 4

University

10 Qs

Python lists

Python lists

Assessment

Quiz

Computers

9th Grade - Professional Development

Practice Problem

Easy

Used 233+ times

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the printed?

grades=[ ]

grades.append(45)

grades.append(67)

grades.append(35)

grades.append(21)

print(grades)

[45, 67, 35, 21 ]

[35, 67, 45, 21]

[ ]

Nothing

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does Append do in python?

Add (something) as an attachment or supplement.

Append is to join or add on to the end of something.

Attach

Take away a number.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is printed?

list=[1, 2, 3, 4]

length=(len(list))

print(length)

4

3

2

1

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does the reverse function do in python?

Nothing

Reverses the list

Move Backwards

Going in or turned toward the direction opposite to that previously stated.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the printed?

grades=[21, 35, 67, 45, 99, 51]

grades.sort()

print(grades)

[21, 35, 67, 45, 99, 51]

[21, 35, 45, 51, 67, 99]

[21, 35, 45, 67, 51, 99]

Nothing

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the printed?

grades=[21, 35, 67, 45, 99, 51]

grades.remove(67)

print(grades)

[21, 35, 45, 99, 51]

[21, 35, 45, 67, 99]

[67, 35, 51, 45, 99]

Nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the slice do in python?

A thin, broad piece of food, such as bread, meat, or cake, cut from a larger portion.

A stroke that makes the ball curve away to the right (for a left-handed player, the left), typically inadvertently.

Cut a Cucumber

Extracts elements, based on a start and stop.