Consider the following pseudo code. What is the total number of…
2014
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 * 3Answer: C. One-sixth of the product of the 3 consecutive integers
- A.
Half of the product of the 3 consecutive integers.
- B.
One-third of the product of the 3 consecutive integers.
- C.
One-sixth of the product of the 3 consecutive integers
- D.
None of the above.
Attempted by 88 students.
Show answer & explanation
Correct answer: C

Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…