GoConqr has a new look! Let us know what you think.

Quiz

Dynamic vs. Static Scoping

Amy Dang 2 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (2)

  1. 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). Image for question 1
    1. Asub a
    2. Bsub a
    3. Cmain
    4. Dsub c
    5. Esub c
    6. Fmain
  2. 2Consider the following Perl code below. What will be the output?Image for question 2
    1. A5
    2. B6
    3. C2
    4. D3
    5. E1, 10
    6. F10, 11
    7. G6, 11
    8. H1, 11
    9. I1
    10. J5
    11. K6
    12. 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
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?