Q. What will be the output of the following R code?
> x <- 3
> switch(6, 2+2, mean(1:10), rnorm(5))

  • (A) 10
  • (B) 1
  • (C) NULL
  • (D) 5
πŸ’¬ Discuss
βœ… Correct Answer: (C) NULL

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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