ncert Python Lists

ncert Python Lists

11th Grade

14 Qs

quiz-placeholder

Similar activities

Computer Programming REVIEW

Computer Programming REVIEW

9th - 12th Grade

15 Qs

ArrayLists

ArrayLists

11th - 12th Grade

10 Qs

Javascript Lists Lecture Knowledge Check

Javascript Lists Lecture Knowledge Check

9th - 12th Grade

11 Qs

نادي البرمجة ضواحي القدس م4

نادي البرمجة ضواحي القدس م4

5th - 11th Grade

13 Qs

Kuis Python 1

Kuis Python 1

11th Grade

15 Qs

Python list starter

Python list starter

10th Grade - University

12 Qs

Python Fundamentals -2

Python Fundamentals -2

11th - 12th Grade

10 Qs

PythonTest

PythonTest

6th Grade - Professional Development

11 Qs

ncert Python Lists

ncert Python Lists

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Deepti Gupta

Used 1+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of a list in Python?

String sequence

Unordered sequence

Ordered sequence

Immutable sequence

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to create a list in Python?

list1 = <1, 2, 3>

list1 = {1, 2, 3}

list1 = [1, 2, 3]

list1 = (1, 2, 3)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list named 'list1'?

list1[1]

list1[0]

list1.first()

list1.get(0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of list1 = [1, 2, 3]; list1 + [4, 5]?

[4, 5, 1, 2, 3]

[1, 2, 3, 4, 5, 6]

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

[1, 2, 3, 4, 5]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for concatenating two lists in Python?

/

-

+

*

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'append()' method do in a list?

Removes an element

Sorts the list

Adds an element at a specific index

Adds an element to the end of the list

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of list1 = [1, 2, 3]; list1 * 2?

[1, 2, 3, 1, 2, 3]

[2, 4, 6]

[1, 2, 3, 2, 4, 6]

[1, 2, 3, 1, 2]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?