71
How many types of data structures does R language have?
A)
2
B)
3
C)
5
D)
8
Answer & Solution
Answer: Option
A
72
To get the current date, the . . . . . . . . function will return a Date object which can be converted to a different class if necessary.
A)
Sys.Time
B)
Sys.Date
C)
Sys.DateTime
D)
DateTime
Answer & Solution
Answer: Option
B
73
A matrix of scatterplots can be produced using . . . . . . . . function.
A)
Pears
B)
Pairs
C)
Tears
D)
Cars
Answer & Solution
Answer: Option
B
74
Point out the correct statement?
A)
In R, a function is an object which has the mode function
B)
R interpreter is able to pass control to the function, along with arguments that may be necessary for the function to accomplish the actions that are desired
C)
Functions are also often written when code must be shared with others or the public
D)
All of the mentioned
Answer & Solution
Answer: Option
D
75
. . . . . . . . suspends the execution of a function wherever it is called and puts the function in debug mode.
A)
debug()
B)
trace()
C)
recover()
D)
browser()
Answer & Solution
Answer: Option
D
76
Two vectors M and N are defined as M <- c(3, 2, 4) and N <- c(1, 2). What will be the output of vector Z that is defined as Z <- M*N.
A)
Z <- (3, 2, 4)
B)
Z <- (3, 6, 4)
C)
Z <- (3, 4, 5)
D)
Z <- (3, 4, 4)
Answer & Solution
Answer: Option
D
77
A programmer builds a . . . . . . . . to avoid repeating the same task or reduce complexity.
A)
Function
B)
Package
C)
Code
D)
Console
Answer & Solution
Answer: Option
A
78
Point out the correct statement?
A)
R has a number of ways to indicate to you that something's not right
B)
Executing any function in R may result in the condition
C)
"condition" is a generic concept for indicating that something unexpected has occurred
D)
All of the mentioned
Answer & Solution
Answer: Option
D
79
Which of the following is valid body of split function?
A)
function (x, f)
B)
function (x, drop = FALSE, ...)
C)
function (x, f, drop = FALSE, ...)
D)
function (drop = FALSE, ...)
Answer & Solution
Answer: Option
C
80
Which of the following is apply function in R?
A)
apply()
B)
tapply()
C)
fapply()
D)
rapply()
Answer & Solution
Answer: Option
B