Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. What will be the output of the following code
set.seed(10) x - rbinom(100, 1, 0.5) str(x)
  1.    int [1:100] 1 0 0 1 0 0 0 0 1 0 ...
  2.     int [1:100] 10 0 01 1 0 0 01 0 1 0 ...
  3.     int [1:100] 1 03 0 1 0 0 0 02 1 0 ...
  4.    int [1:100] 1 2 3 1 1 0 0 0 1 0 ...
 Discuss Question
Answer: Option A. -> int [1:100] 1 0 0 1 0 0 0 0 1 0 ...


Graph of x can be plotted using plot function.


Question 2. Which of the following creates a new ggplot plot from a data frame ?
  1.    qplot_ggplot
  2.    ggplot.data.frame
  3.    ggfluctuation
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> ggplot.data.frame


geom_pointrange understands various aesthetics.


Question 3. Point out the wrong statement :
  1.    For each probability distribution there are typically three functions
  2.    For each probability distribution there are typically four functions
  3.    r function is sufficient for simulating random numbers
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> For each probability distribution there are typically three functions


There are typically four functions available that start with a "r, "d, "p, and "q.


Question 4. system.time function returns an object of class _______ which contains two useful bits of information.
  1.    debug_time
  2.    proc_time
  3.    procedure_time
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> proc_time


if there's an error, gives the time until the error occurred.


Question 5. How many methods exist for normalizing the data ?
  1.    one
  2.    two
  3.    three
  4.    profiler
 Discuss Question
Answer: Option B. -> two


There are two methods for normalizing the data.


Question 6. Which of the following is a differentiation related aesthetic ?
  1.    aes_position
  2.    aes_group_order
  3.    aes_linetype_size_shape
  4.    ggorder
 Discuss Question
Answer: Option C. -> aes_linetype_size_shape


aes_position is position related aesthetics.


Question 7. Which of the following is discrete state calculator ?
  1.    discrete_scale
  2.    ggpcp
  3.    ggfluctuation
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> ggfluctuation


ggpcp is used to create a parallel coordinate plot.


Question 8. Which of the following function works similar to separate() ?
  1.    extract()
  2.    gather()
  3.    sep()
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> extract()


extract() works in a similar way.


Question 9. Which of the following is an example of a vector graphics device in R?
  1.    JPEG
  2.    PNG
  3.    GIF
  4.    SVG
 Discuss Question
Answer: Option D. -> SVG


SVG stands for scalable vector graphics.


Question 10. What is ggplot2 an implementation of ?
  1.    the Grammar of Graphics developed by Leland Wilkinson
  2.    3D visualization system
  3.    the S language originally developed by Bell Labs
  4.    the base plotting system in R
 Discuss Question
Answer: Option A. -> the Grammar of Graphics developed by Leland Wilkinson


The ggplot2 package, created by Hadley Wickham, offers a powerful graphics language for creating elegant and complex plots.


Latest Videos

Latest Test Papers