InfytQ Collections -Quiz 3

Question 1

Time: 00:00:00
_____ is an object that is used to store different objects and provides access to iterate through them.

collections

collections

dictionary

dictionary

Ordered dictionary

Ordered dictionary

container

container

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
Identify the built-in containers used in python

Lists

Lists

Dictionary

Dictionary

tuples

tuples

all the above

all the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
_____ is used to keep the count of the elements in an iterable in the form of an unordered dictionary

counter

counter

Ordered counter

Ordered counter

Clock

Clock

dict

dict

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
How will you import counter in collection library 

import counter

import counter

From collections import counter

From collections import counter

From counter import counter

From counter import counter

All the above

All the above

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
Which collection is used to store heterogeneous data types as improvement of array

sets

sets

tuples

tuples

lists

lists

dictionary

dictionary

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Is strings a collection in python?

Yes

Yes

No

No

depends on version of python using

depends on version of python using

Definitely NOT

Definitely NOT

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00

import collections
a=dict()
a=collections.defaultdict(int)
print(a[9999])

zero

zero

index out of range

index out of range

1

1

Error

Error

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00

import collections
a=dict()
a=collections.defaultdict(int)
print(list(a)[1])

zero

zero

index out of range1

index out of range1

1

1

error

error

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Completed

0/0

Accuracy

0%

Comments