Search Header Logo

Class-11th IP Ch-4 Working with List & Dictionary

Authored by Dinesh Kag

Professional Development

11th Grade

Used 1+ times

Class-11th IP Ch-4 Working with List & Dictionary
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function is used to count the number of elements in a list?

Count ( )

find ( )

len ( )

index ( )

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements create a dictionary?

D = { }

d = {red 45 blue 55}

D= {40 orange 45 green}

all of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?

d= {"Hello ":10,"Hi":20}

"hello" 40,45 and "hi"

"hello" and "hi"

40 and 45

d = (40" hello 45,hii)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the output of the following code : list("welcome")

[welcome]

(welcome)

['w','e','l','c','o','m','e']

none of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose d={"red":20 "green":30} to obtain number of entire in dictiona which command do we use?

D size ( )

len (d)

size (d)

d Ien ( )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements will create list?

L1 = list ( )

L1 = [1,2,3,4]

both of the above

none of above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the output of the following code:

L=['a' * x for x in range(4)]

print(L)

['', 'a', 'aa', 'aaa']

['a','aa','aaa']

Error

none of above

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?