Home / CSE MCQs / R Programming MCQs :: R Programming Profiling,Simulation, Data Analysis

CSE MCQs :: R Programming MCQs

  1. What will be the output of the following code

    set.seed(10)
     x - rbinom(100, 1, 0.5)
     str(x)
  2. A.

    int [1:100] 1 0 0 1 0 0 0 0 1 0 ...

    B.

     int [1:100] 10 0 01 1 0 0 01 0 1 0 ...

    C.

     int [1:100] 1 03 0 1 0 0 0 02 1 0 ...

    D.

    int [1:100] 1 2 3 1 1 0 0 0 1 0 ...


  3. Point out the wrong statement :
  4. A.
    For each probability distribution there are typically three functions
    B.
    For each probability distribution there are typically four functions
    C.
    r function is sufficient for simulating random numbers
    D.
    None of the mentioned

  5. How many methods exist for normalizing the data ?
  6. A.
    one
    B.
    two
    C.
    three
    D.
    profiler

  7. system.time function returns an object of class _______ which contains two useful bits of information.
  8. A.
    debug_time
    B.
    proc_time
    C.
    procedure_time
    D.
    All of the mentioned

  9. Which of the following creates a new ggplot plot from a data frame ?
  10. A.
    qplot_ggplot
    B.
    ggplot.data.frame
    C.
    ggfluctuation
    D.
    All of the mentioned

  11. Which of the following is a differentiation related aesthetic ?
  12. A.
    aes_position
    B.
    aes_group_order
    C.
    aes_linetype_size_shape
    D.
    ggorder

  13. Which of the following is discrete state calculator ?
  14. A.
    discrete_scale
    B.
    ggpcp
    C.
    ggfluctuation
    D.
    All of the mentioned

  15. What is ggplot2 an implementation of ?
  16. A.
    the Grammar of Graphics developed by Leland Wilkinson
    B.
    3D visualization system
    C.
    the S language originally developed by Bell Labs
    D.
    the base plotting system in R

  17. Which of the following is an example of a vector graphics device in R?
  18. A.
    JPEG
    B.
    PNG
    C.
    GIF
    D.
    SVG

  19. Which of the following function works similar to separate() ?
  20. A.
    extract()
    B.
    gather()
    C.
    sep()
    D.
    All of the mentioned