Home / CSE MCQs / R Programming MCQs :: R Programming Data Storage, Formats, Operations

CSE MCQs :: R Programming MCQs

  1. What would be the output of the following code ?

     p - as.POSIXlt(x)
     names(unclass(p))
     p$wday
  2. A.
    1
    B.
    2
    C.
    3
    D.
    NULL

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What would be the output of the following code ?

    x - 1:4
     y - 6:9
     z - x + y
     z
  4. A.
    7 9 11 13
    B.
    7 9 11 13 14
    C.
    9 7 11 13
    D.
    NULL

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What would be the output of the following code ?

    x - 1:4
     y - 6:9
     x/y
  6. A.
    0.1666667 0.2857143 0.4444444
    B.
    0.1666667 0.2857143 0.3750000 0.4444444
    C.
    0.2857143 0.3750000 0.4444444
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following argument denotes if the file has a header line ?
  8. A.
    header
    B.
    sep
    C.
    file
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Point out the wrong statement :
  10. A.
    $ operator semantics are similar to that of [[
    B.
    The [[ operator can take an integer sequence if you want to extract a nested element of a list
    C.
    The $ operator can be used to extract multiple elements from a list
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Columns can be arranged in descending order too by using the special ____ operator.
  12. A.
    asc()
    B.
    desc()
    C.
    descending()
    D.
    subset

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Connections to text files can be created with the ________ function.
  14. A.
    url
    B.
    gzfile
    C.
    bzfile
    D.
    file

    View Answer

    Workspace

    Discuss Discuss in Forum