Home / CSE MCQs / R Programming MCQs :: Discussion

Discussion :: 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 ...

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Graph of x can be plotted using plot function.


Be The First To Comment