71.
Which of the following code would read 100 rows?

72.
Point out the correct statement?

73.
Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?

74.
Point out the wrong statement?

75.
What will be the output of the following R code?
> x <- c(1, 2, NA, 4, NA, 5)
> bad <- is.na(x)
> print(bad)

76.
Point out the correct statement?

79.
What will be the output of the following R code?
> y <- data.frame(a = 1, b = "a")
> dput(y)

structure(list(a = 1, b = list(1L, .Label = "a", class = "factor")), .Names\
= c("a",
"b"), row.names = c(NA, -1L), class = "data.frame")

list(list(a = 1, b = list(1L, .Label = "a", class = "factor")), .Names\
= c("a",
"b"), row.names = c(NA, -1L), class = "data.frame")

structure(list(a = 1, b = structure(1L, .Label = "a", class = "factor")), .Names\
= c("a",
"b"), row.names = c(NA, -1L), class = "data.frame")

Read More Section(Data Structures in R Programming)

Each Section contains maximum 100 MCQs question on Data Structures in R Programming. To get more questions visit other sections.