Q. What will be the output of the following R code?
> x <- rnorm(10)
> 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: (A) [1] 0.01874617 -0.18425254 -1.37133055 -0.59916772 0.29454513 [6] 0.38979430 -1.20807618 -0.36367602 -1.62667268 -0.25647839

Q. Logical flag is applicable to which of the following plots?

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

Q. What does the 'pch' option to par() control?

  • (A) the size of the plotting symbol in a scatterplot
  • (B) the line width in the base graphics system
  • (C) the orientation of the axis labels on the plot
  • (D) the plotting symbol/character in the base graphics system
πŸ’¬ Discuss
βœ… Correct Answer: (D) the plotting symbol/character in the base graphics system

Q. Point out the correct statement?

  • (A) update_element update contents of a theme
  • (B) Use theme_update_element to modify a small number of elements of the current theme or use theme_set to completely override it
  • (C) theme_bw is theme with grey background and white gridlines
  • (D) is.rel reports whether x is a theme object
πŸ’¬ Discuss
βœ… Correct Answer: (A) update_element update contents of a theme

Q. . . . . . . . . display a smooth density estimate.

  • (A) geom_density2
  • (B) geom_density
  • (C) aes_sdensity
  • (D) geom_contour
πŸ’¬ Discuss
βœ… Correct Answer: (B) geom_density

Q. Which of the following is discrete state calculator?

  • (A) discrete_scale
  • (B) ggpcp
  • (C) ggfluctuation
  • (D) ggmissing
πŸ’¬ Discuss
βœ… Correct Answer: (C) ggfluctuation

Q. Which of the following d takes two columns and spreads them into multiple columns?

  • (A) ggmissplot
  • (B) printplot
  • (C) print.ggplot
  • (D) ggplot
πŸ’¬ Discuss
βœ… Correct Answer: (C) print.ggplot

Q. Point out the correct statement?

  • (A) gather() makes "wide" data longer
  • (B) Two functions are present for tidy data
  • (C) separate() makes "wide" data longer
  • (D) spread() function takes multiple columns
πŸ’¬ Discuss
βœ… Correct Answer: (C) separate() makes "wide" data longer

Q. Which of the following code is not profiled?

  • (A) C
  • (B) C++
  • (C) Java
  • (D) PHP
πŸ’¬ Discuss
βœ… Correct Answer: (A) C

Q. 5 Normal random numbers can be generated with rnorm() by setting seed value to . . . . . . . .

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