Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. The output of the two codes shown below is the same. State whether this statement is true or false.

    bin((2**16)-1)
     '{}'.format(bin((2**16)-1))
  2. A.
    True
    B.
    False
    C.
    Both I and II
    D.
    Only I

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The output of both of the codes shown above is '0b1111111111111111'. Hence the statement is true.


Be The First To Comment