Question 24 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 s TO 0
FOR i FROM 1 TO 4
    FOR j FROM 1 TO i
        SET s TO s + j
    END FOR
END FOR
PRINT s

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
← Q23Q25Attempt the full timed mock

More pseudocode questions