MCQ

M4584 · [1]
N = 45 P = 1 T = 0 loop while N > 0 B = N mod 2 T = T + B * P P = P * 10 N = N div 2 end loop output T What is the output?
Checks instantly · free · no account Keys A–D to answer

IBMarker is not affiliated with the International Baccalaureate Organization (IBO). All questions are original, written in the style of the IB Diploma Programme.

Next question →
free · no account