MCQ
M4563 · [1]
A program simulates a device that loses the contents of primary memory when power is removed. Variables in RAM are reset to 0 on each power loss; values written to DISK persist.
RAM = 0
DISK = 0
loop COUNT from 1 to 3
RAM = RAM + 2
DISK = DISK + 1
POWER_LOSS() // clears RAM only
end loop
output RAM, DISK
What is output?
Checks instantly · free · no account
Keys A–D to answer
Related in 2.3: Secondary storage
IBMarker is not affiliated with the International Baccalaureate
Organization (IBO). All questions are original, written in the style of the IB
Diploma Programme.