Logo

Python Questions Set 84:

Quiz Mode

Format Function applied on a String returns:

1
2
3
4

Solution:

Which of the following operator has highest precedence.

1
2
3
4

Solution:

What is the output of following :


no = ['Hey','hello']

print(no[0]+no[1])

1
2
3
4

Solution:

Given the list [2445, 133, 12454, 123], what is the maximum value in the list?

1
2
3
4

Solution:

 

What will be the output of the following Python code?

>>>list("a#b#c#d".split('#'))

1
2

Solution:

 

What Is The Name Given To That Area Of Memory, Where The System Stores The Parameters And Local Variables Of A Function Call?

1
2
3
4

Solution:

 

What will be the output of the following Python code?

>>>m = [[x, x + 1, x + 2] for x in range(0, 3)]

1
2

Solution:

What is the output of the given code?


x=1000000000000000000000000000000000000


x=x+1


print(x)

1
2
3
4

Solution:

 

What will be the output of the following Python code?

class A():
   def disp(self):
       print("A disp()")
class B(A):
   pass
obj = B()
obj.disp()

1
2
3
4

Solution:

What will be the output of the following Python code?

class Demo:
def __init__(self):
self.a = 1
self.__b = 1

def display(self):
return self.__b

1
2
3
4

Solution: