class11 dict ,list and loops

class11 dict ,list and loops

11th Grade

9 Qs

quiz-placeholder

Similar activities

Python Fundamentals and Programming

Python Fundamentals and Programming

11th - 12th Grade

13 Qs

Python Quiz  -  5

Python Quiz - 5

4th - 11th Grade

10 Qs

Python Basics

Python Basics

9th - 12th Grade

14 Qs

Java ArrayList

Java ArrayList

9th - 12th Grade

10 Qs

Quiz1_HPB2021_2010t1

Quiz1_HPB2021_2010t1

1st - 12th Grade

10 Qs

Pyflask2020

Pyflask2020

KG - Professional Development

10 Qs

Python: Chapter 7 - True or False (Lists and Tuples)

Python: Chapter 7 - True or False (Lists and Tuples)

9th Grade - University

8 Qs

Λίστες Python

Λίστες Python

11th Grade

10 Qs

class11 dict ,list and loops

class11 dict ,list and loops

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Vijayalakshmi Kavoor

Used 3+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

l = [5] * 10

print(len(l))

10

error

none

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

List1 = [4, 8, 12, 16]

List1[1:4] = [20, 24, 28]

print(List1)

[4, 20, 24]

Error

[4, 20, 24, 28]

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

List = [10, 20, 30, 40, 50]

List.append(60)

print(List)


List.append(60)

print(List)

[10, 20, 30, 40, 50, 60]

[10, 20, 30, 40, 50, 60, 60]

[10, 20, 30, 40, 50, 60]

[10, 20, 30, 40, 50, 60]

[60,10, 20, 30, 40, 50]

[60,60,10, 20, 30, 40, 50]

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select all the correct options to copy a list

aList = ['a', 'b', 'c', 'd']

newList = copy(aList)

newList = aList.copy()

newList.copy(aList)

newList = list(aList)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q:Predict the output of the following

for a in range(1,6):

if(a%2==0):

break

print(a)

else:

print("loop over")

2

4

1

2

4

loop over

1

loop over

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Write the output

aList = [1, 2, 3, 4, 5, 6, 7]

pow2 = [2 * x for x in aList]

print(pow2)

[2, 4, 6, 8, 10, 12, 14]

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

Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code

aList = ["PYnative", [4, 8, 12, 16]]

print(aList[0][1])

print(aList[1][3])

P 8

Y 16

P

12

Y

16

8.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following?

aList = [5, 10, 15, 25]

print(aList[::-2])

[10, 5]

[15, 10, 5]

[25, 10]

9.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Dictionary as a whole is _____________

Mutable

immutable