Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2015 Set 1
Questions

Q33

MCQ2 marks, −0.67ProgrammingMedium

Consider the following pseudo code, where xx and yy are positive integers.

begin
    q := 0
    r := x
    while r ≥ y do
    begin
        r := r - y
        q := q + 1
    end
end

The post condition that needs to be satisfied after the program terminates is

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.