1.

Point out the wrong statement?(a) Dynamic scoping turns out to be particularly useful for simplifying statistical computations(b) Lexical scoping turns out to be particularly useful for simplifying statistical computations(c) The scoping rules of a language determine how values are assigned to free variables(d) An environment is a collection of (symbol, value) pairs, i.e. x is a symbol and 3.14 might be its valueI got this question in a job interview.My question is taken from Scoping Rules topic in portion Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct OPTION is (a) Dynamic scoping turns out to be particularly USEFUL for simplifying STATISTICAL computations

The explanation is: FREE variables are not formal arguments and are not local variables (ASSIGNED inside the function body).



Discussion

No Comment Found

Related InterviewSolutions