Q. What will be the output of the following R code?
> g <- function(x) {
+ a <- 3
+ x+a+y
+ ## 'y' is a free variable
+ }
> y <- 3
> g(2)

  • (A) 9
  • (B) 42
  • (C) 8
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 8

Q. What is the memory limit in R for 64 bit system?

  • (A) 8 TB
  • (B) 9TB
  • (C) 10TB
  • (D) 16TB
πŸ’¬ Discuss
βœ… Correct Answer: (A) 8 TB

Q. Which of the following code will print NULL?

  • (A) > args(paste)
  • (B) > arg(paste)
  • (C) > args(pastebin)
  • (D) > arg(bin)
πŸ’¬ Discuss
βœ… Correct Answer: (A) > args(paste)

Q. The current user defined objects like lists, vectors, etc. is referred to as . . . . . . . . in the R language.

  • (A) Work names
  • (B) Work space
  • (C) Environment
  • (D) Console
πŸ’¬ Discuss
βœ… Correct Answer: (A) Work names

Q. If two vectors with different lengths perform some operation, the elements of the shorter vector will be used again to complete the operation. This is referred to as . . . . . . . .

  • (A) Element Recycling
  • (B) Recycling
  • (C) Cycling
  • (D) Element Cycling
πŸ’¬ Discuss
βœ… Correct Answer: (A) Element Recycling

Q. What is the memory limit in R for 32 bit system?

  • (A) 8 TB
  • (B) 9TB
  • (C) 10TB
  • (D) 3GB
πŸ’¬ Discuss
βœ… Correct Answer: (D) 3GB

Q. What will be the output of the following R code?
> nLL <- make.NegLogLik(normals, c(1, FALSE))
> optimize(nLL, c(1e-6, 10))$minimum

  • (A) 1.217775
  • (B) 1.800596
  • (C) 3.73424
  • (D) empty
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1.800596

Q. . . . . . . . . variables are categorical variables which can hold either string or numeric values.

  • (A) Factor
  • (B) Simpler
  • (C) Function
  • (D) Package
πŸ’¬ Discuss
βœ… Correct Answer: (A) Factor

Q. . . . . . . . . measures the probability of the binary response variable in R language.

  • (A) Logical Regression
  • (B) Multivariate Regression
  • (C) Simpler Regression
  • (D) Statistics
πŸ’¬ Discuss
βœ… Correct Answer: (A) Logical Regression

Q. . . . . . . . . is the best way for communicating the results of data analysis using the R language.

  • (A) Single document
  • (B) Files
  • (C) Structures
  • (D) Loadings
πŸ’¬ Discuss
βœ… Correct Answer: (A) Single document