Question discussion

Suppose there are elements in an array . If we want to insert a new element at position in array , , causing elements numbered to become nu…

359446Medium DSSSB TGT Computer Science 0 replies 0 views
0
Suppose there are elements in an array . If we want to insert a new element at position in array , , causing elements numbered to become numbered:

Figure for question 142

Figure for question 142

Figure for question 142

Figure for question 142

  • AOption A
  • BOption B
  • COption C
  • DOption D
Correct answer: B

Explanation

Inserting at position i shifts the elements at positions i to n one step right, so they become i + 1, …, n + 1.

Discussion 0

Nobody has replied yet. Start the discussion!