List - Class XI

List - Class XI

11th Grade

10 Qs

quiz-placeholder

Similar activities

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Trắc nghiệm bài 12 tin học 11

Trắc nghiệm bài 12 tin học 11

11th Grade

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Common Protocols

Common Protocols

10th - 12th Grade

15 Qs

Basic computer

Basic computer

9th - 12th Grade

8 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

List - Class XI

List - Class XI

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Rachna Bajaj

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands will create a list?

list1 = list()

list1 = []

list1 = list([1, 2, 3])

all of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output when we execute list(“hello”)?

[‘hello’]

[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

[‘llo’]

[‘olleh’]

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python code?

a=[10,23,56,[78]]

b=list(a)

a[3][0]=95

a[1]=34

print(b)

[10,34,56,[95]]

[10,23,56,[78]]

[10,23,56,[95]]

[10,34,56,[78]]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would give an error?

list1=[]

list1=[]*3

list1=[2,8,7]

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is True regarding lists in Python?

Lists are immutable.

Size of the lists must be specified before its initialization

Elements of lists are stored in contagious memory location.

size(list1) command is used to find the size of lists.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of below Python code?

list1=[8,0,9,5]


print(list1[::-1])

[5,9,0,8]

[8,0,9]

[8,0,9,5]

[0,9,5]

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of following Python code?

list1=["Python","Java","c","C","C++"]


print(min(list1))

c

C++

C

min function cannot be used on string elements

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?