null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
38697906
Dynamic vs. Static Scoping
Description
Using codes to understand the functions of local and static variables and dynamic and static scoping
No tags specified
dynamic variables
dynamic scoping
static scoping
static variables
my
local
global
csci 374: programming languages
college
Quiz by
Amy Dang
, updated more than 1 year ago
More
Less
Created by
Amy Dang
over 1 year ago
24
0
0
Resource summary
Question 1
Question
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).
Image:
My Loc1 (binary/octet-stream)
Answer
sub a
sub a
main
sub c
sub c
main
Question 2
Question
Consider the following Perl code below. What will be the output?
Image:
My Loc1 (binary/octet-stream)
Answer
5
6
2
3
1, 10
10, 11
6, 11
1, 11
1
5
6
7
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
7th Grade Global History Pre-Assessment
Selam H
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
Browse Library