ncert Python Lists

ncert Python Lists

11th Grade

14 Qs

quiz-placeholder

Similar activities

Cuestionario sobre seguridad en línea

Cuestionario sobre seguridad en línea

2nd Grade - University

15 Qs

Thinglink

Thinglink

9th - 12th Grade

10 Qs

HTML (3CS)

HTML (3CS)

10th - 11th Grade

10 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

Spoljna memorija - HDD

Spoljna memorija - HDD

9th - 11th Grade

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

ncert Python Lists

ncert Python Lists

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Deepti Gupta

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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]

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?