Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What is the value of this expression:

     bin(10-2)+bin(12^4)
  2. A.
    0b10000
    B.
    0b10001000
    C.
    0b1000b1000
    D.
    0b10000b1000

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The output of bin(10-2)= 0b1000 and that of bin(12^4) is ob1000. Hence the output of the above expression is: 0b10000b1000.


Be The First To Comment