Operator in Python MCQs Exercise I


Ques 1 Operator


Which of the following is true about operators?
  a) Operators is value.
  b) Operators are used to perform operations on variables and values.
  c) Both (a) and (b)
  d) None of the above.


b is the correct option





Ques 2 Operator


Which of the following is an Arithmetic operator?
  a) +
  b) ~
  c) ++
  d) All of these


a is the correct option





Ques 3 Operator


Which of the following is not a Logical Operator?
  a) ~
  b) and
  c) or
  d) None of the above.


a is the correct option





Ques 4 Operator


What is the output of the following Python Code?


num=2 ** 3 // 2 % 1 + 5 + 6 ** 2 * 1 + 1
print(num)

  a) 16
  b) 32
  c) 36
  d) 42


d is the correct option