Names and Scope Scope Suppose that a name is used many times for different entities in text of the program, or in the course of execution. When the name is used, to which…