Q. Point out the wrong statement?

  • (A) One nice feature that R shares with many popular open source projects is frequent releases
  • (B) R has sophisticated graphics capabilities
  • (C) S's base graphics system allows for very fine control over essentially every aspect of a plot or graph
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) S's base graphics system allows for very fine control over essentially every aspect of a plot or graph

Q. What is the mode of 'a' in the following R code?
a <- c(1,” a”, FALSE)

  • (A) Numeric
  • (B) Character
  • (C) Integer
  • (D) Logical
πŸ’¬ Discuss
βœ… Correct Answer: (B) Character

Q. How is a character string defined in R?

  • (A) "Hello, World!"
  • (B) 'Hello, World!'
  • (C) c("Hello", "World")
  • (D) char("Hello, World!")
πŸ’¬ Discuss
βœ… Correct Answer: (A) "Hello, World!"

Q. How is a data frame created in R?

  • (A) df <- c(1, 2, 3)
  • (B) data.frame(x = 1:3, y = c('A', 'B', 'C'))
  • (C) createDataFrame(1, 2, 3)
  • (D) matrix(1:3, nrow = 1, ncol = 3)
πŸ’¬ Discuss
βœ… Correct Answer: (B) data.frame(x = 1:3, y = c('A', 'B', 'C'))

Q. Point out the correct statement?

  • (A) Character strings are entered using either matching double (") or single (') quotes
  • (B) Character vectors may be concatenated into a vector by the c() function
  • (C) Subsets of the elements of a vector may be selected by appending to the name of the vector an index vector in square brackets
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the mentioned

Q. Which of the following is a 3-dimensional dataset?

  • (A) Eris
  • (B) Iris
  • (C) Toris
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Iris

Q. Which of the following object is masked from 'package: stats'?

  • (A) filter
  • (B) union
  • (C) set difference
  • (D) get difference
πŸ’¬ Discuss
βœ… Correct Answer: (A) filter

Q. Unlike writing out a table or CSV file, dump() and dput() preserve the . . . . . . . . so that another user doesn't have to specify the all over again.

  • (A) metadata
  • (B) backup data
  • (C) attribute data
  • (D) normal data
πŸ’¬ Discuss
βœ… Correct Answer: (A) metadata

Q. Which of the following R code creates a connection to 'foo.txt'?

  • (A) con <- file("foo.txt")
  • (B) open(con, "r")
  • (C) opencon(con, "r")
  • (D) ocon(con, "r")
πŸ’¬ Discuss
βœ… Correct Answer: (A) con <- file("foo.txt")

Q. R code can be tested using . . . . . . . . package.

  • (A) Dplyr
  • (B) Hadley's testthat
  • (C) SKLearn
  • (D) KNN
πŸ’¬ Discuss
βœ… Correct Answer: (B) Hadley's testthat