Q.1
What will be the output of the following R code snippet? > paste("a", "b", se = ":")
  • a) “a+b”
  • b) “a=b”
  • c) “a b :”
  • d) none of the mentioned
Q.2
Point out the correct statement?
  • a) In R, a function is an object which has the mode function
  • b) R interpreter is able to pass control to the function, along with arguments that may be necessary for the function to accomplish the actions that are desired
  • c) Functions are also often written when code must be shared with others or the public
  • d) All of the mentioned
Q.3
The __________ function returns a list of all the formal arguments of a function.
  • a) formals()
  • b) funct()
  • c) formal()
  • d) fun()
Q.4
Point out the wrong statement?
  • a) A formal argument can be a symbol, a statement of the form ‘symbol = expression’, or the special formal argument
  • b) The first component of the function declaration is the keyword function
  • c) The value returned by the call to function is not a function
  • d) Functions are also often written when code must be shared with others or the public
Q.5
You can check to see whether an R object is NULL with the _________ function.
  • a) is.null()
  • b) is.nullobj()
  • c) null()
  • d) as.nullobj()
Q.6
Which of the following code will print NULL?
  • a) > args(paste)
  • b) > arg(paste)
  • c) > args(pastebin)
  • d) > arg(bin)
Q.7
What will be the output of the following R code snippet? Hello, world! [14
  • a) 4
  • b) 3
  • c) 2
  • d) 5
Q.8
What will be the output of the following R code snippet? Hello, world! [15
  • a) “a+b”
  • b) “a=b”
  • c) “a:b”
  • d) a*b
Q.9
What will be the output of the following R code snippet? Hello, world! [16
  • a) 32
  • b) 42
  • c) 52
  • d) 45
0 h : 0 m : 1 s