MCQs
Total Questions : 12
| Page 1 of 2 pages
Answer: Option B. -> function
The function closure model can be used to create functions that "carry around data with them.
Answer: Option A. -> plot()
For simple scatter plots, plot.default will be used.
Answer: Option C. -> The if/else statement conditionally evaluates two statements
The if/else statement returns, as its value, the value of the statement that was selected.
Answer: Option C. -> NULL
If value is too large or too small NULL is returned.
Answer: Option D. -> All of the mentioned
Programmers can create their own custom conditions if they want.
Answer: Option A. -> debug()
Primary tools are mainly used for debugging R code.
Answer: Option A. -> next
No statement below next in the current loop is evaluated.
Answer: Option A. -> Vectorizing the function can be accomplished easily with the Vectorize() function
Vectorize() function does not preserve the invisibility of the return value.
Answer: Option D. -> None of the mentioned
The results of applying the function over the subsets are then collated and returned as an object.
Answer: Option A. -> formals()
Functions have named arguments which can optionally have default values.