Control Structures In R Programming - Study Mode

[#1] The only environment without a parent is the . . . . . . . . environment.
Correct Answer

(D) empty

[#2] The . . . . . . . . function is a kind of "constructor function" that can be used to construct other functions.
Correct Answer

(B) make.power()

[#3] Which function in R language is used to find out whether the means of 2 groups are equal to each other or not?
Correct Answer

(C) t.tests ()

[#4] What will be the output of the following R code? > f <- function() {
+ ## This is an empty function
+ }
> class(f)
Correct Answer

(A) "function"

[#5] Point out the wrong statement?
Correct Answer

(C) lapply() does not always returns a list
(E) Dynamic scoping turns out to be particularly useful for simplifying statistical computations
(J) R provides only two tools to help you with debugging your code
(M) Functions in R are "second class objects"
(S) apply() can be thought of as a combination of split() and sapply() for vectors only
(V) break will execute a loop while a condition is true
(Y) A formal argument can be a symbol, a statement of the form 'symbol = expression', or the special formal argument
(]) The order of the packages on the search list does not matter
(a) Statements cannot be grouped together using braces '{' and '}'