Skip to content

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

GateBrew
← GATE CSE 2014 Set 1
Questions

Q42

MCQ2 marks, −0.67AlgorithmsMedium

Consider the following pseudo code. What is the total number of multiplications to be performed?

D = 2
for i = 1 to n do
    for j = i to n do
        for k = j + 1 to n do
            D = D * 3
Sign in to save attempts.

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