Q. Which function in R language is used to find out whether the means of 2 groups are equal to each other or not?

  • (A) f.tests ()
  • (B) l.tests ()
  • (C) t.tests ()
  • (D) not exist
πŸ’¬ Discuss
βœ… Correct Answer: (C) t.tests ()

Q. What will be the output of the following R code?
> f <- function() {
+ ## This is an empty function
+ }
> class(f)

  • (A) "function"
  • (B) "class"
  • (C) "procedure"
  • (D) "system"
πŸ’¬ Discuss
βœ… Correct Answer: (A) "function"

Q. Point out the wrong statement?

  • (A) Multi-line expressions with curly braces are just not that easy to sort through when working on the command line
  • (B) lappy() loops over a list, iterating over each element in that list
  • (C) lapply() does not always returns a list
  • (D) You cannot use lapply() to evaluate a function multiple times each with a different argument
πŸ’¬ Discuss
βœ… Correct Answer: (C) lapply() does not always returns a list

Q. . . . . . . . . is used to skip an iteration of a loop.

  • (A) next
  • (B) skip
  • (C) group
  • (D) cancel
πŸ’¬ Discuss
βœ… Correct Answer: (A) next

Q. What will be the output of the following R code?
> f <- function() {
+ ## This is an empty function
+ }
> f()

  • (A) 0
  • (B) No result
  • (C) NULL
  • (D) 1
πŸ’¬ Discuss
βœ… Correct Answer: (C) NULL

Q. Which function basically finds the intersection between two different sets of data?

  • (A) Converge
  • (B) Merge
  • (C) Delegate
  • (D) Swap
πŸ’¬ Discuss
βœ… Correct Answer: (B) Merge

Q. . . . . . . . . can contain heterogeneous inputs.

  • (A) Matrix
  • (B) Data Frames
  • (C) Matrix and Data Frames
  • (D) Does not exists
πŸ’¬ Discuss
βœ… Correct Answer: (B) Data Frames

Q. . . . . . . . . is one type of the simplest machine learning classification algorithms that is a subset of supervised learning based on lazy learning.

  • (A) K-Nearest Neighbour
  • (B) Naive Bayes
  • (C) Travelling Salesman
  • (D) N-Queen
πŸ’¬ Discuss
βœ… Correct Answer: (A) K-Nearest Neighbour

Q. hat will be the output of the following R code?
> centre <- function(x, type) {
+ switch(type,
+ mean = mean(x),
+ median = median(x),
+ trimmed = mean(x, trim = .1))
+ }
> x <- rcauchy(10)
> centre(x, "mean")

  • (A) 0.8760325
  • (B) 0.5360891
  • (C) 0.6086504
  • (D) gives mean with values depending on rcauchy values
πŸ’¬ Discuss
βœ… Correct Answer: (D) gives mean with values depending on rcauchy values

Q. Point out the wrong statement?

  • (A) The order of the packages on the search list does not matter
  • (B) R has separate namespaces for functions and non-functions
  • (C) Users can configure which packages get loaded on startup so if you are writing a function
  • (D) The search list can be found by using the search() function
πŸ’¬ Discuss
βœ… Correct Answer: (A) The order of the packages on the search list does not matter