Computers

9th -

12thgrade

Image

CodeHS 4.9 Local Variables and Scope

20
plays

7 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    What is the term for a variable declared inside a method?

    method variable

    local variable

    global variable

    private variable

  • 2. Multiple Choice
    30 seconds
    1 pt

    Where does a variable that is declared inside a method exist?

    only in that method

    only in the class the method is in

    only in methods that declare the variable

    as long as the program is running

  • 3. Multiple Choice
    30 seconds
    1 pt

    What is scope?

    the part of a program where the variable exists

    a minty mouthwash

    a device used to aim a projectile

    a device in a submarine that is used to view the surface

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?