Quiz
Dynamic vs. Static Scoping
This quiz has question types that open in the usual player.
Questions in this quiz (2)
1Consider the following perl code below. Label the function from which $x value will be used at specified points (Ex. sub a, sub b, sub c, or main).

- Asub a
- Bsub a
- Cmain
- Dsub c
- Esub c
- Fmain
2Consider the following Perl code below. What will be the output?

- A5
- B6
- C2
- D3
- E1, 10
- F10, 11
- G6, 11
- H1, 11
- I1
- J5
- K6
- L7
Information
- Description
- Using codes to understand the functions of local and static variables and dynamic and static scoping
- Author
- Amy Dang
- Language
- English
- Views
- 88
- Tags
- Rating
- No ratings yet Rate this quiz