Q. The recover() function will first print out the function call stack when an . . . . . . . . occurs.

  • (A) Error
  • (B) Warning
  • (C) Messages
  • (D) delete
πŸ’¬ Discuss
βœ… Correct Answer: (A) Error

Q. The cumulative frequency distribution of a categorical variable can be checked using the . . . . . . . . function in R language.

  • (A) Sum
  • (B) Cumsum
  • (C) Lumpsum
  • (D) Resum
πŸ’¬ Discuss
βœ… Correct Answer: (B) Cumsum

Q. R uses . . . . . . . . scoping6 0 or static scoping.

  • (A) reflective
  • (B) transitive
  • (C) lexical
  • (D) closure
πŸ’¬ Discuss
βœ… Correct Answer: (C) lexical

Q. R has . . . . . . . . statements that provide explicit looping.

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5
πŸ’¬ Discuss
βœ… Correct Answer: (B) 3

Q. Point out the wrong statement?

  • (A) The primary task of debugging any R code is correctly diagnosing what the problem is
  • (B) R provides only two tools to help you with debugging your code
  • (C) print statement can be used for debugging purpose
  • (D) The traceback() function must be called immediately after an error occurs
πŸ’¬ Discuss
βœ… Correct Answer: (B) R provides only two tools to help you with debugging your code

Q. Which of the following should be preferred for evaluation from list of alternatives?

  • (A) subsett
  • (B) eval
  • (C) switch
  • (D) set
πŸ’¬ Discuss
βœ… Correct Answer: (B) eval

Q. What will be the class of the vector if you concatenate a number and a character?

  • (A) Number
  • (B) Character
  • (C) Integer
  • (D) No class
πŸ’¬ Discuss
βœ… Correct Answer: (B) Character

Q. Which of the following R code snippet stops loop after 20 iterations?

  • (A) for(i in 1:100) { print(i) if(i > 20) { break } }
  • (B) for(i in 1:100) { print(i) if(i > 19) { break } }
  • (C) for(i in 1:100) { print(i) if(i < 20) { break } }
  • (D) for(i in 2:100) { print("i") if(i > 150) { break } }
πŸ’¬ Discuss
βœ… Correct Answer: (A) for(i in 1:100) { print(i) if(i > 20) { break } }

Q. . . . . . . . . package is used to speed up data frame management code.

  • (A) Data.table
  • (B) Dplyr
  • (C) Table
  • (D) Data.dplyr
πŸ’¬ Discuss
βœ… Correct Answer: (B) Dplyr

Q. Which of the following is multivariate version of lapply?

  • (A) apply()
  • (B) lapply()
  • (C) sapply()
  • (D) mapply()
πŸ’¬ Discuss
βœ… Correct Answer: (D) mapply()