list

list

11th Grade

7 Qs

quiz-placeholder

Similar activities

Python list starter

Python list starter

10th Grade - University

12 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Bill Gates

Bill Gates

1st Grade - University

10 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Вложенные списки. Часть 1

Вложенные списки. Часть 1

11th Grade

10 Qs

CSS Style Sheet

CSS Style Sheet

8th - 12th Grade

11 Qs

CAI625 Practice Quiz

CAI625 Practice Quiz

11th - 12th Grade

10 Qs

Списки Python + Pygame

Списки Python + Pygame

KG - University

10 Qs

list

list

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Ms.Haseeba Computer

Used 13+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following program:

list1 = ["python", "list", 1952, 2323, 432]

print(list1[1:4])

["python","list",1952,2323]

[1952,2323,432]

["list",1952,2323]

["list",1952,2323,432]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following program:

list1 = ["python", "list", 1952, 2323, 432]

print(list1[-5])

list

1952

432

python

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following code-

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

print(a+b)

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

(3,1,2,5,4,6)

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

[54,6,3,1,2]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following code-

list1=[1, 3, 2]

list1 * 2

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

[1,3,2]*2

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

( [1,3,2] )([1,3,2])

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

theList=[1, 2, [1.1, 2.2]]

print(len(theList))

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following program:

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

print(data[1][0][0])

2

5

1

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following program:

a=[2,3]

a.append(7)

print(a))

(2,3)

[2,7]

[2,3,7]

[7,2,3]