SLIDE 2 11/1/15 2
Sample questions
u Given a program, what will be the output if static scoping is
used? what will be its output if dynamic scoping is used? (Ch 4)
u Difference between lifetime and scope. Give example. (Ch
4)
u Static vs. dynamic typing – what is the difference? (Ch 5) u What does a strongly typed language mean? (Ch 5) u How are arrays implemented? Extend 1-dimensional array
shown in class to 2-dimensional array. (Ch 5)
u Are functions types? Give examples. (Ch 5) u Given a statement, give a verbal description of its
u Simulate the three memory management algorithms on a
given example. (Ch 11)
u Given a recursive function, draw the activities in the run-
time stack when the function is called. (Ch 9.7)
u Other questions from the topics covered during the classes.
Semantics
Precisely describes the meaning of all language constructs for:
1.
Programmers
2.
Compiler writers
3.
Standards developers