MCQ
M4688 · [1]
The pseudocode below uses integer division DIV, which discards any fractional part, and MOD, which gives the remainder.
A = 17
B = 5
C = A DIV B
D = A MOD B
E = C + D
output E
What is the value output?
Checks instantly · free · no account
Keys A–D to answer
Related in 4.6: Programming
IBMarker is not affiliated with the International Baccalaureate
Organization (IBO). All questions are original, written in the style of the IB
Diploma Programme.