Dynamic vs. Static Scoping

Descripción

Using codes to understand the functions of local and static variables and dynamic and static scoping
Amy Dang
Test por Amy Dang, actualizado hace más de 1 año
Amy Dang
Creado por Amy Dang hace alrededor de 2 años
42
0
1 2 3 4 5 (0)

Resumen del Recurso

Pregunta 1

Pregunta
Consider 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).
Respuesta
  • sub a
  • sub a
  • main
  • sub c
  • sub c
  • main

Pregunta 2

Pregunta
Consider the following Perl code below. What will be the output?
Respuesta
  • 5
  • 6
  • 2
  • 3
  • 1, 10
  • 10, 11
  • 6, 11
  • 1, 11
  • 1
  • 5
  • 6
  • 7
Mostrar resumen completo Ocultar resumen completo

0 comentarios

There are no comments, be the first and leave one below:

Similar

Donald Trump on global risk list
Taekgeun Lee
My Daily Routine Story
Seda Nur Güneş
What is an Effective Global Knowledge Program?
Team C CUR 505
Security
annelieserainey
My Grandmother Knitting Q&A
Roza Stevenson
Components for my operating system
Guillermo Martinez
My Daily Cycle - Wednesday
Olon Vandos
Local Government
Nick Drewe
My Daily Cycle - Tuesday
Olon Vandos
My Entire Week
Olon Vandos