What is an accurate statement about variable scope?
A. A variable can be defined at any point in a block B. Parallel blocks can use the same variable name C. Sub-blocks cannot reuse a parent block s variable name D. A static variable can restrict the scope to the current block if its values is null E. Sub-blocks can reuse a parentÂ´s block variable name if its value is null
There are different accurate statements about the variable scope that are mentioned above. The first is letter A. You can define the variable in a block easily. The next statement is letter B. Even if you are using different parallel blocks, you can use the same name for them.
Lastly, letter C is also an accurate statement because the parent name cannot be reused anymore. Variable scope is known to be an entity or a variable wherein the different details about it can only refer to the said item. Placing the name of the scope is important especially if it needs to be found immediately.