Q. What will be the output of the following R code?
> x <- list(1, "a", TRUE, 1 + 4i)
> x

  • (A) [[1]] [1] 1 [[2]] [1] "a" [[3]] [1] TRUE [[4]] [1] 1+4i
  • (B) [[1]] [1] 2 [[2]] [1] "b" [[3]] [1] TRUE [[4]] [1] 1+4i
  • (C) [[1]] [1] 3 [[2]] [1] "a" [[3]] [1] TRUE [[4]] [1] 1+4i
  • (D) [[1]] [1] 77 [[2]] [1] "a" [[3]] [1] False [[4]] [1] 1+5i
πŸ’¬ Discuss
βœ… Correct Answer: (A) [[1]] [1] 1 [[2]] [1] "a" [[3]] [1] TRUE [[4]] [1] 1+4i

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
205
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate