InfytQ Libraries and functions-Quiz 6

Question 1

Time: 00:00:00
Which is not a type of function in python

Built-in functions

Built-in functions

User defined functions

User defined functions

Anonymous function

Anonymous function

None of the above

None of the above

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

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
Which is not a in built function in python

frozenset()

frozenset()

locals()

locals()

filter()

filter()

execute()

execute()

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

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
Functions defined without a name is called ___

Unnamed functions

Unnamed functions

Anonymous functions

Anonymous functions

Normal function

Normal function

None of the above

None of the above

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

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
Normal functions : def :: anonymous functions : ?

def

def

anym

anym

lambda

lambda

return

return

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 function is used to find the position(left to right) of the element in the list 

position()

position()

pos()

pos()

ind()

ind()

index()

index()

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00

def max(a,b):
   return a+b 
print(max(5,4))


Predict the output

9

9

5

5

4

4

error

error

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

Please login to submit your explanation

Start

Question 7

Time: 00:00:00

a,b=1,1
arr=[1,a,b]
print(sum(arr))

1

1

Garbage value

Garbage value

Error , cannot add char and int

Error , cannot add char and int

3

3

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

Please login to submit your explanation

Start

Question 8

Time: 00:00:00

shoppingList=["mobile","vegetables","fruits","milk"]
shoppingList.sort()
shoppingList.insert(2,"rice")
print("#{}.{}".format(2,shoppingList[3]))


what is the output of above code?

mobile

mobile

vegetables

vegetables

fruits

fruits

milk

milk

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