Operator in Python MCQs Exercise II


Ques 1 Operator


Which of the following are a ceil and floor division?
  a) % and %%
  b) %% and %
  c) / and //
  d) // and /


d is the correct option





Ques 2 Operator


Arrange according to Precedence in ascending order.

1)or  2)and  3)&  4)lambda

  a) 4,1,2,3
  b) 3,1,2,4
  c) 4,1,2,3
  d) None of these


a is the correct option





Ques 3 Operator


What is the output of the following Code?


x=2
y=2
z=2
print(x**y**z,end='')
print((x**y)**z)

  a) 256 256
  b) 256 65536
  c) 65536 256
  d) 65536 65536


c is the correct option