AHMAD L2

AHMAD L2

12th Grade

9 Qs

quiz-placeholder

Similar activities

Code.org APCSP Unit 7 Assessment

Code.org APCSP Unit 7 Assessment

9th - 12th Grade

8 Qs

Pseudocode CSP

Pseudocode CSP

10th - 12th Grade

8 Qs

JavaScript #4: DOM

JavaScript #4: DOM

12th Grade

10 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

SQL

SQL

10th - 12th Grade

11 Qs

HTML Quiz 1 Review

HTML Quiz 1 Review

7th - 12th Grade

11 Qs

Class XI IP

Class XI IP

11th - 12th Grade

10 Qs

Code.org Unit 7

Code.org Unit 7

9th - 12th Grade

8 Qs

AHMAD L2

AHMAD L2

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Ahmad Abdallah

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function removes a specific element from a List?

pop()

discard()

remove()

delete()

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the min() function in a List?

Returns the largest element

Returns the smallest element

Returns the sum of elements

Returns the average of elements