Question

    Which programming concept allows a variable name to refer to different entities based on its location in code?

    A Scope resolution Correct Answer Incorrect Answer
    B Variable shadowing Correct Answer Incorrect Answer
    C Type inference Correct Answer Incorrect Answer
    D Variable hoisting Correct Answer Incorrect Answer

    Solution

    Variable shadowing

    Practice Next

    Relevant for Exams: