Logo

Python Questions Set 136:

Quiz Mode

a = frozenset((3, 2, 4))

print(a)

1
2
3
4

Solution:

What data type is the object below ? L = [1, 23, ‘hello’, 1] 

1
2
3
4

Solution:

 

What will be the output of the following Python code?

print("abcdef".find("cd"))

1
2

Solution:

Which of the following is not a complex number? 

1
2
3
4

Solution:

Deduce the output of the following code:


x = lambda a: a**3

y = lambda a, b: a*b

print(x(y(2, 3)))

1
2
3
4

Solution:

_______ is a Django app and a framework that lets us create RESTful APIs rapidly.

1
2
3
4

Solution:

 

Which Of The Following Can Be Used To Invoke The __init__ Method In B From A, Where A Is A Subclass Of B?

1
2
3

Solution:

What will be the output of the following code?

a = [0, 1, 2, 3, 4, 5]
b = (0, 1, 2, 3, 4, 5)
c = {12, 14, 16, 15}
print(5 in a)
print(13 in c)

1
2
3
4

Solution:

Which of the following statements is true about namespaces?

1
2
3
4

Solution:

 How are keyword arguments specified in the function heading? 

1
2
3
4

Solution: