Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What is the output of the code shown below?

    not(3>4)
    not(1&1)
  2. A.

    True

    True

    B.

    True

    False

    C.

    False

    True

    D.

    False

    False

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The function not returns true if the argument amounts to false, and false if the argument amounts to true. Hence the first function returns false, and the second function returns false.


Be The First To Comment