R Language quiz questions

R Language interview questions

  • 1.

    If you explicitly want an integer, you need to specify the _____ suffix.

    1. D

    2. R

    3. L

    4. All of the mentioned

    Answer
  • 2.

    Numbers in R are generally treated as _______ precision real numbers.

    1. single

    2. double

    3. real

    4. All of the mentioned

    Answer
  • 3.

    Point out the correct statement :

    1. Empty vectors can be created with the vector() function

    2. A sequence is represented as a vector but can contain objects of different classes

    3. “raw” objects are commonly used directly in data analysis

    4. None of the mentioned

    Answer
  • 4.

    R has how many atomic classes of objects ?

    1. 1

    2. 2

    3. 3

    4. 5

    Answer
  • 5.

    Collection of objects currently stored in R is called as :

    1. package

    2. workspace

    3. list

    4. None of the mentioned

    Answer
  • 6.

    Which of the following can be used to display the names of (most of) the objects which are currently stored within R ?

    1. object()

    2. objects()

    3. list()

    4. None of the mentioned

    Answer
  • 7.

    The entities that R creates and manipulates are known as ________

    1. objects

    2. task

    3. container

    4. All of the mentioned

    Answer
  • 8.

    _______ will divert all subsequent output from the console to an external file.

    1. sink

    2. div

    3. exp

    4. None of the mentioned

    Answer
  • 9.

    If commands are stored in an external file, say commands.R in the working directory work, they may be executed at any time in an R session with the command :

    1. source(“commands.R”)

    2. exec(“commands.R”)

    3. execute(“commands.R”)

    4. All of the mentioned

    Answer
  • 10.

    Point out the wrong statement :

    1. operator is used to create integer sequences

    2. The numbers in the square brackets are part of the vector itself

    3. There is a difference between the actual R object and the manner in which that R object is printed to the console

    Answer
  • 11.

    Files containing R scripts ends with extension :

    1. .S

    2. .R

    3. .Rp

    4. All of the mentioned

    Answer
  • 12.

    Which of the following code is example of explicit printing ?

    1. > x <- 5 
      > x

       

    2. > x <- 5 
      > print(x)

       

    3. > x <- "auto" 
      > x

       

    4. All of the mentioned

    Answer
  • 13.

    Point out the wrong statement :

    1. The grammar of the language determines whether an expression is complete or not

    2. The <- symbol is the assignment operator in R

    3. The ## character indicates a comment

    4. None of the mentioned

    Answer
  • 14.

    What would be the result of following R code ?

    > x <- 1
    > print(x)

     

    1. 1

    2. 2

    3. 3

    4. All of the mentioned

    Answer
  • 15.

    _____ text editor provides more general support mechanisms via ESS for working interactively with R.

    1. EAC

    2. Emacs

    3. Shell

    4. None of the mentioned

    Answer
  • 16.

    Command lines entered at the console are limited to about ________ bytes.

    1. 3000

    2. 4095

    3. 5000

    4. None of the mentioned

    Answer
  • 17.

    If a command is not complete at the end of a line, R will give a different prompt, by default it is :

    1. *

    2. -

    3. +

    4. All of the mentioned

    Answer
  • 18.

    Elementary commands in R consist of either _______ or assignments.

    1. utilstats

    2. language

    3. expressions

    4. None of the mentioned

    Answer
  • 19.

    Which of the following statement is alternative to

     ?solve 

     

    1. help(solve)

    2. man(solve)

    3. hel(solve)

    4. All of the mentioned

    Answer
  • 20.

    Point out the wrong statement :

    1. Windows versions of R have other optional help system also

    2. The help.search command (alternatively ??) allows searching for help in various ways

    3. R is case insensitive as are most UNIX based packages, so A and a are different symbols and would refer to different variables

    4. All of the mentioned

    Answer

© 2017 QuizBucket.org