πŸ“Š R Programming
Q. What will be the output of the following R code?
x <- (“a”, “b”)
as.logical(x)
  • (A) a b
  • (B) "a" "b"
  • (C) 1 1
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Error
πŸ“Š R Programming
Q. What is the mode of b in the following R code?
b <- c(TRUE, TRUE, 1)
  • (A) Numeric
  • (B) Character
  • (C) Integer
  • (D) Logical
πŸ’¬ Discuss
βœ… Correct Answer: (A) Numeric
πŸ“Š R Programming
Q. Point out the wrong statement?
  • (A) Setting up a workstation to take full advantage of the customizable features of R is a straightforward thing
  • (B) q() is used to quit the R program
  • (C) R has an inbuilt help facility similar to the man facility of UNIX
  • (D) Windows versions of R have other optional help systems also
πŸ’¬ Discuss
βœ… Correct Answer: (B) q() is used to quit the R program
πŸ“Š R Programming
Q. Which of the following command is used to print an object "x" in R?
  • (A) printf(x)
  • (B) print(x)
  • (C) printx
  • (D) print[x]
πŸ’¬ Discuss
βœ… Correct Answer: (B) print(x)
πŸ“Š R Programming
Q. What will be the output of the following R code?
a <- (“a” , “b”)
mode(a)
  • (A) Character
  • (B) Numeric
  • (C) Complex
  • (D) Integer
πŸ’¬ Discuss
βœ… Correct Answer: (A) Character
πŸ“Š R Programming
Q. What is the class defined in the following R code?
y<-c(FALSE,2)
  • (A) Character
  • (B) Numeric
  • (C) Logical
  • (D) Integer
πŸ’¬ Discuss
βœ… Correct Answer: (B) Numeric
πŸ“Š R Programming
Q. Which of the following statement is alternative to . . . . . . . .
?solve
  • (A) help(solve)
  • (B) print(solve)
  • (C) bind(solve)
  • (D) matrix(solve)
πŸ’¬ Discuss
βœ… Correct Answer: (A) help(solve)
πŸ“Š R Programming
Q. How can we define 'infinity' in R language?
  • (A) Inf
  • (B) Sup
  • (C) Und
  • (D) NaN
πŸ’¬ Discuss
βœ… Correct Answer: (A) Inf
πŸ“Š R Programming
Q. The copyright for the primary source code for R is held by the . . . . . . . . Foundation.
  • (A) A
  • (B) S
  • (C) C
  • (D) R
πŸ’¬ Discuss
βœ… Correct Answer: (D) R
πŸ“Š R Programming
Q. What is the output of getOption("defaultPackages") in R studio?
  • (A) Installs a new package
  • (B) Shows default packages in R
  • (C) Error
  • (D) Nothing will print
πŸ’¬ Discuss
βœ… Correct Answer: (B) Shows default packages in R