Choose the correct output of the following Python program snippet: D = 11 B, E…
PYQ EMRS TGT/PGT (ESSE) 2025
Choose the correct output of the following Python program snippet:
D = 11
B, E = 0, 1
while D > 0:
R = D % 2
D //= 2
B += R * E
E *= 10
print(B)- A.
1011
- B.
1101
- C.
1001
- D.
1100
Attempted by 899 students.
Sign up free to check your answer
Sign up freeLoading lesson…

