Explore topic-wise MCQs in R Programming.

This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your R Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

The _________ function is a kind of “constructor function” that can be used to construct other functions.

A. make.pow()
B. make.power()
C. keep.power()
D. keep.pow()
Answer» C. keep.power()
2.

The ________ for R are the main feature that make it different from the original S language.

A. scoping rules
B. closure rules
C. environment rules
D. closure & environment rules
Answer» B. closure rules
3.

The only environment without a parent is the ________ environment.

A. full
B. half
C. null
D. empty
Answer» E.
4.

R uses _________ scoping6 0 or static scoping.

A. reflective
B. transitive
C. lexical
D. closure
Answer» D. closure
5.

Which of the variable in the following R code is variable?

A. x
B. y
C. z
D. yyView Answer
Answer» D. yyView Answer
6.

What will be the output of the following R code snippet?

A. function(x) { x * x }
B. func(x) { x * x }
C. function(x) { x / x }
D. function { x $ x }View Answer
Answer» B. func(x) { x * x }
7.

THE_ONLY_ENVIRONMENT_WITHOUT_A_PARENT_IS_THE__________ENVIRONMENT.?$

A. full
B. half
C. null
D. empty
Answer» C. null
8.

The__________for_R_are_the_main_feature_that_make_it_different_from_the_original_S_language$

A. scoping rules
B. closure rules
C. environment rules
D. all of the mentioned
Answer» E.
9.

R uses _________ scoping⁶⁰ or static scoping?#

A. reflective
B. transitive
C. lexical
D. all of the mentioned
Answer» B. transitive
10.

A function, together with an environment, makes up what is called a ______ closure.

A. formal
B. function
C. reflective
D. all of the mentioned
Answer» D. all of the mentioned
11.

function(x) { x * x }

A. func(x) { x * x }
B. function(x) { x / x }
C. none of the mentioned
Answer» C. none of the mentioned