Question: Which of the following statements doesn't yield the code output below. Review the following code. What is the result of line 3?

  1. x[c(2, 3, 4)]
  2. x[-1]
  3. x[c(-1, 0, 0, 0)]
  4. x[c(-1, 2, 3, 4)]

Answer: The correct answer of the above question is Option D:x[c(-1, 2, 3, 4)]