Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. 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
    1. Half of the product of the 3 consecutive integers.
    2. One-third of the product of the 3 consecutive integers.
    3. One-sixth of the product of the 3 consecutive integers.
    4. None of the above.
Correct Option: C

One-sixth of the product of the 3 consecutive integers.



Your comments will be displayed only after manual approval.