Q. Which of the following is an example of a valid graphics device in R?

  • (A) A socket connection
  • (B) A Microsoft Word document
  • (C) A PDF file
  • (D) A file folder
πŸ’¬ Discuss
βœ… Correct Answer: (C) A PDF file

Q. What will be the output of the following R code?
> rpois(10, 1)

  • (A) [1] 7 0 1 1 2 1 1 4 1 2
  • (B) [1] 0 8 1 1 2 1 1 4 1 2
  • (C) [1] 0 0 1 1 2 1 1 4 1 2
  • (D) [1] 0 0 0 0 0 0 0 1 4 1 2
πŸ’¬ Discuss
βœ… Correct Answer: (C) [1] 0 0 1 1 2 1 1 4 1 2

Q. The . . . . . . . . function computes the time (in seconds) needed to execute an expression.

  • (A) system.timedeb()
  • (B) system.time()
  • (C) system.datetime()
  • (D) system.deb()
πŸ’¬ Discuss
βœ… Correct Answer: (B) system.time()

Q. Point out the correct statement?

  • (A) R comes with a set of pseudo-random number generators
  • (B) Random number generators cannot be used to model random inputs
  • (C) Statistical procedure does not require random number generation
  • (D) For each probability distribution there are typically three functions
πŸ’¬ Discuss
βœ… Correct Answer: (A) R comes with a set of pseudo-random number generators

Q. Bitmapped file formats can be most useful for . . . . . . . .

  • (A) Plots that may need to be resized
  • (B) Plots that require animation or interactivity
  • (C) Plots that are not scaled to a specific resolution
  • (D) Scatterplots with many many points
πŸ’¬ Discuss
βœ… Correct Answer: (D) Scatterplots with many many points

Q. . . . . . . . . time is time charged to the CPU(s) for the R expression.

  • (A) elapsed
  • (B) user
  • (C) response
  • (D) monitor
πŸ’¬ Discuss
βœ… Correct Answer: (A) elapsed

Q. Spread function is known as . . . . . . . . in spreadsheets.

  • (A) pivot
  • (B) unpivot
  • (C) cast
  • (D) order
πŸ’¬ Discuss
βœ… Correct Answer: (B) unpivot

Q. Point out the correct statement?

  • (A) tidyr and dplyr packages do not make use of the pipe operator
  • (B) tidyr does less than reshape2
  • (C) tidyr provides ability to string multiple functions together by incorporating %
  • (D) tidyr does greater than reshape2
πŸ’¬ Discuss
βœ… Correct Answer: (B) tidyr does less than reshape2

Q. Which of the following creates a new ggplot plot from a data frame?

  • (A) qplot_ggplot
  • (B) ggplot.data.frame
  • (C) ggfluctuation
  • (D) ggmissplot
πŸ’¬ Discuss
βœ… Correct Answer: (B) ggplot.data.frame

Q. What is a geom in the ggplot2 system?

  • (A) a plotting object like point, line, or other shape
  • (B) a method for making conditioning plots
  • (C) a method for mapping data to attributes like color and size
  • (D) a statistical transformation
πŸ’¬ Discuss
βœ… Correct Answer: (A) a plotting object like point, line, or other shape