Q44
MSQ2 marksAlgorithmsConsider functions and expressed in pseudocode as follows: Function_1
while n>1 do
for i=1 to n do
x = x + 1;
end for
n = ⌊n/2⌋;
end while
Function_2
for i = 1 to 100 * n do
x = x + 1;
end for
Let and denote the number of times the statement is executed in and respectively. Which of the following statements is/are
Sign in to save attempts.
Keys: A–D or 1–4 choose, Enter checks, ← → move between questions.
Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.