Q. Point out the WRONG statement?

  • (A) Early versions of the S language contain functions for statistical modeling
  • (B) The book Programming with Data by John Chambers documents S version of the language
  • (C) In 1993 Bell Labs gave StatSci (later Insightful Corp.) an exclusive license to develop and sell the S language
  • (D) The book Programming with Data by IBM documents S version of the language
πŸ’¬ Discuss
βœ… Correct Answer: (A) Early versions of the S language contain functions for statistical modeling

Q. The most convenient way to use R is at a graphics workstation running a . . . . . . . . system.

  • (A) windowing
  • (B) running
  • (C) interfacing
  • (D) matrix
πŸ’¬ Discuss
βœ… Correct Answer: (A) windowing

Q. If a command is not complete at the end of a line, R will give a different prompt, by default it is . . . . . . . .

  • (A) *
  • (B) -
  • (C) +
  • (D) /
πŸ’¬ Discuss
βœ… Correct Answer: (C) +

Q. Which one of the following is not a basic datatype?

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

Q. In which IDE we can interact with R?

  • (A) R studio
  • (B) Console
  • (C) GCC
  • (D) Power shell
πŸ’¬ Discuss
βœ… Correct Answer: (A) R studio

Q. R language has superficial similarity with . . . . . . . .

  • (A) C
  • (B) Python
  • (C) MATLAB
  • (D) SAS
πŸ’¬ Discuss
βœ… Correct Answer: (A) C

Q. How many atomic vector types does R have?

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

Q. What is the length of b?
b <- 2:7

  • (A) 4
  • (B) 5
  • (C) 6
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (C) 6

Q. What will be the output of the following R function?
d <- diag(5, nrow=2, ncol=2)
d

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

Q. The dimension attribute is itself an integer vector of length . . . . . . . .

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2