list quizes

list quizes

11th Grade - University

10 Qs

quiz-placeholder

Similar activities

Python Quiz - 4 Lists,Loops,String Manipulation

Python Quiz - 4 Lists,Loops,String Manipulation

University

15 Qs

HCI 584 Python quiz

HCI 584 Python quiz

University

15 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

Lists, Subroutines and Sequence in Pseudocode - Python

Lists, Subroutines and Sequence in Pseudocode - Python

1st - 11th Grade

14 Qs

4-字典与集合

4-字典与集合

University

10 Qs

Round 1

Round 1

University

10 Qs

Python:  Rock, Scissors, Paper

Python: Rock, Scissors, Paper

10th - 12th Grade

10 Qs

Python Quiz

Python Quiz

12th Grade

15 Qs

list quizes

list quizes

Assessment

Quiz

Computers

11th Grade - University

Medium

Created by

janathul firthouse

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the difference between the following two expressions, if list is

given as [1.3.5]

a. Lst*3

b. Lst*=3

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following?

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

print(A[::3])

a. [1,4,7]

b. [8,9]

c. [1,3,5,7,9]

d. [1,2,3]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

a=[1,2,3,4,5]

print(a[4:0:-1])

a. Syntax error

b. [4,3,2]

c. [5,4,3,2]

d. [4,3,2,1]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list=[12,3,22,'mango','hello']. What will be the output of:

print(list[-1][-1])?

a. h

b. 12

c. o

d. mango

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to find the length of a list?

a. length()

b. len()

c. size()

d. None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which method is used to find the sum of elements of a list?

a. add()

b. summation()

c. addition()

d. sum()

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What do you mean by list.count(obj)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers