GATE IT 2005 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0215

Let a and b be two sorted arrays containing n integers each, in non-decreasing order. Let c be a sorted array containing 2n integers obtained by merging the two arrays a and b. Assuming the arrays are indexed starting from 0, consider the following four statementsI. \(a[i] \geq b [i] \Rightarrow c[2i] \geq a [i]\)II. \(a[i] \geq b [i] \Rightarrow c[2i] \geq b [i]\)III. \(a[i] \geq b [i] \Rightarrow c[2i] \leq a [i]\)IV. \(a[i] \geq b [i] \Rightarrow c[2i] \leq b [i]\)Which of the following is TRUE?
  1. A
    only I and II
  2. B
    only I and IV
  3. C
    only II and III
  4. D
    only III and IV

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3820/gate2005-it-59

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com