Search Header Logo

AHMAD L2

Authored by Ahmad Abdallah

Computers

12th Grade

AHMAD L2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a List in Python?

A type of variable

A function

A single value

A collection of items

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a List in Python?

Using parentheses

Using square brackets

Using curly braces

Using angle brackets

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to find the length of a List?

count()

len()

length()

size()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns the largest element in a List?

top()

max()

largest()

biggest()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of list1.count(10) if list1 = [10, 'Dog', 5.2, 10, True]?

3

2

1

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of list1.reverse() if list1 = [1, 2, 3]?

[1, 3, 2]

[2, 1, 3]

[1, 2, 3]

[3, 2, 1]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid data type for a List element?

Integer

String

Function

Boolean

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?