1.

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 rulesI got this question by my college director while I was bunking the class.Query is from Scoping Rules topic in section Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

The correct answer is (a) scoping rules

For explanation I would SAY: This function never actually uses the argument b, so CALLING f(2) will not PRODUCE an ERROR because the 2 gets positionally MATCHED to a.



Discussion

No Comment Found

Related InterviewSolutions