Q. Data frames can have additional attributes such as . . . . . . . .

  • (A) Rowname()
  • (B) Rownames()
  • (C) R.names()
  • (D) D.names()
πŸ’¬ Discuss
βœ… Correct Answer: (B) Rownames()

Q. The . . . . . . . . function takes an arbitrary number of arguments and concatenates them one by one into character strings.

  • (A) copy()
  • (B) paste()
  • (C) bind()
  • (D) del()
πŸ’¬ Discuss
βœ… Correct Answer: (A) copy()

Q. All columns in a matrix must have the same mode and the . . . . . . . . length.

  • (A) Different
  • (B) Same
  • (C) May be the same
  • (D) May be different
πŸ’¬ Discuss
βœ… Correct Answer: (B) Same

Q. The four most frequently used types of data objects in R are vectors, matrices, data frames and . . . . . . . .

  • (A) Function
  • (B) Lists
  • (C) Packages
  • (D) Interfaces
πŸ’¬ Discuss
βœ… Correct Answer: (B) Lists

Q. . . . . . . . .are Data frames which contain lists of homogeneous data in a tabular format.

  • (A) Matrix
  • (B) Vector
  • (C) Lists
  • (D) Array
πŸ’¬ Discuss
βœ… Correct Answer: (A) Matrix

Q. What will be the output of the following R code?
> x <- 1:3
> y <- 10:12
> rbind(x, y)

  • (A) [,1] [,2] [,3] x 1 2 3 y 10 11 12
  • (B) [,1] [,2] [,3] x 1 2 3 y 10 11
  • (C) [,1] [,2] [,3] x 1 2 3 y 4 5 6
  • (D) [,4] [,5] [,3] x 1 3 5 y 4 5 2
πŸ’¬ Discuss
βœ… Correct Answer: (A) [,1] [,2] [,3] x 1 2 3 y 10 11 12

Q. Decimal values are referred as . . . . . . . . data types in R.

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

Q. The . . . . . . . . function can be used to create vectors of objects by concatenating things together.

  • (A) cp()
  • (B) c()
  • (C) concat()
  • (D) con()
πŸ’¬ Discuss
βœ… Correct Answer: (B) c()

Q. An ordered factor is used to represent an . . . . . . . .

  • (A) Ordinal variable
  • (B) Simple variable
  • (C) Coordinal variable
  • (D) Biordinal variable
πŸ’¬ Discuss
βœ… Correct Answer: (A) Ordinal variable

Q. What will be the output of the following R code?
x <- c("a", "b", "c")
> as.numeric(x)

  • (A) Warning
  • (B) Error
  • (C) Abnormal termination
  • (D) Prints x
πŸ’¬ Discuss
βœ… Correct Answer: (A) Warning