1.

R uses _________ scoping^6 0 or static scoping.(a) reflective(b) transitive(c) lexical(d) closureThis question was posed to me in my homework.The question is from Scoping Rules topic in chapter Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer» RIGHT CHOICE is (c) lexical

The EXPLANATION is: Lexical scoping in R means that the values of free VARIABLES are searched for in the environment in which the function was DEFINED.


Discussion

No Comment Found

Related InterviewSolutions