Answer:
A. Sub3 local variables are; x, w, v and d while the visible variables from the main variables; a and b.
B. Sub2 local variables are; a and d while the visible variables from the main and sub1 are; c, b, w and v
Step-by-step explanation:
The variable name defined with the 'var' in the main is on a global scope to other functions defined in it. But when the same name of the variable is defined in the inner functions, its variable name is overridden with the newly defined variable.