Vidyalelo
Ruby Programming · Q15

Advanced Topics in Ruby

Programming · Ruby Programming · question 15

Q15

What does the term "lexical scope" refer to in Ruby?

A.
The scope determined by the order of execution of statements
B.
The scope determined by the visibility of variables and methods in the current context
C.
The scope determined by where variables and methods are defined in the source code
Answer
D.
The scope determined by the order of creation of objects

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board