Question 30 of 110Programming Basicspseudocode

Consider the following pseudocode carefully and trace its execution step by step. What will be printed when this pseudocode is executed?

SET n TO 300
SET c TO 0
WHILE n >= 1
    SET n TO n DIV 5    (integer division, the remainder is discarded)
    SET c TO c + 1
END WHILE
PRINT c

The verified answer and full solution are one login away

Every answer here is machine verified, with a step-by-step solution that teaches the method. Your login also unlocks a 7-question mock preview in the real exam interface.

Log in to see the answer
← Q29Q31Attempt the full timed mock

More pseudocode questions