Q. What will be the output of the following R code?
> x <- rnorm(10)
> summary(x)

  • (A) [1] 0.01874617 -0.18425254 -1.37133055 -0.59916772 0.29454513 [6] 0.38979430 -1.20807618 -0.36367602 -1.62667268 -0.25647839
  • (B) [1] 22.20356 21.51156 19.52353 21.97489 21.48278 20.17869 18.09011 [8] 19.60970 21.85104 20.96596
  • (C) Min. 1st Qu. Median Mean 3rd Qu. Max. 18.09 19.75 21.22 20.74 21.77 22.20
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) Min. 1st Qu. Median Mean 3rd Qu. Max. 18.09 19.75 21.22 20.74 21.77 22.20

Q. Point out the correct statement?

  • (A) Rprof() is used to turn off the profiler
  • (B) At each line of the output, the profiler writes out the function call stack
  • (C) The summaryprof() function tabulates the R profiler output
  • (D) The Rprofiler() function starts the profiler in R
πŸ’¬ Discuss
βœ… Correct Answer: (B) At each line of the output, the profiler writes out the function call stack

Q. Which of the following function actually fits the linear model?

  • (A) lm.time()
  • (B) lm.date()
  • (C) lm.fit()
  • (D) lm.interval()
πŸ’¬ Discuss
βœ… Correct Answer: (C) lm.fit()

Q. . . . . . . . . produces box-and-whisker plots.

  • (A) xyplot
  • (B) dotplot
  • (C) barchart
  • (D) bwplot
πŸ’¬ Discuss
βœ… Correct Answer: (D) bwplot

Q. Point out the correct statement?

  • (A) When simulating any random numbers it is not essential to set the random number seed
  • (B) It is not possible to generate random numbers from other probability distributions like the Poisson
  • (C) You should always set the random number seed when conducting a simulation
  • (D) Statistical procedure does not require random number generation
πŸ’¬ Discuss
βœ… Correct Answer: (C) You should always set the random number seed when conducting a simulation

Q. . . . . . . . . is used for relative sizing of theme elements.

  • (A) rel
  • (B) size
  • (C) relative
  • (D) timrinterval
πŸ’¬ Discuss
βœ… Correct Answer: (A) rel

Q. How many methods exist for normalizing the data?

  • (A) one
  • (B) two
  • (C) three
  • (D) profiler
πŸ’¬ Discuss
βœ… Correct Answer: (B) two

Q. . . . . . . . . generate random Poisson variates with a given rate.

  • (A) dnorm
  • (B) rnorm
  • (C) pnorm
  • (D) rpois
πŸ’¬ Discuss
βœ… Correct Answer: (D) rpois

Q. . . . . . . . . is a systematic way to examine how much time is spent in different parts of a program.

  • (A) Profiling
  • (B) Monitoring
  • (C) Logging
  • (D) Debugging
πŸ’¬ Discuss
βœ… Correct Answer: (A) Profiling

Q. . . . . . . . . is the most common probability distribution to work with.

  • (A) Gaussian
  • (B) Parametric
  • (C) Paradox
  • (D) Simulation
πŸ’¬ Discuss
βœ… Correct Answer: (A) Gaussian