Programming Languages Final Simulation
Programming Languages Final Simulation
Simulation
A. Explanation Questions (2 Questions)
1. Explain the concept of Referential Transparency. Give an example.
(Chapter 7 – Final %70)
9. The runtime memory area for function calls is the ________. (Ch. 10)
11. A CFG defines the ________ of a programming language. (Ch. 3 – Vize %30)
12. { } in EBNF means zero or more ________. (Ch. 3 – Vize %30)
16. Pass-by-value allows the function to change the caller’s variable. (False, Ch. 9)
17. CFG defines the semantics of a language. (False, Ch. 3 – Vize %30)
18. [x] in EBNF means x occurs zero or one time. (True, Ch. 3 – Vize %30)
20. Stack is FIFO (First In First Out) structure. (False, Ch. 10)
21. A function call always creates a new activation record. (True, Ch. 10)