Organization of Programming Languages
Topics for Final Examination
-
From review questions on pages 33-34. Four questions from questions
3, 4, 6, 9, 10, 12, 13, 15, 17, 21, 23, 24, 26, 29.
-
From the problem set on pages 34-35. Answers should be from 1/3 to
1/2 page long. 3, 6, 7, 12, 16.
-
Describe the development of FORTRAN from FORTRAN 1 to FORTRAN 77
(substute other language sequences for FORTRAN)
-
From review questions on pages 102-103. Three questions from questions
21, 22, 26, 28, 33, 36, 38, 44, 45, 46.
-
Define syntax and semantics
-
Program trace -- dynamic scoping and static scoping
-
Scoping in Ada
-
Scoping in C++
-
Attributes of variables
-
Activation stack / heap
-
Give an example of explicit heap-dynamic variables.
-
What is static binding. Give an example.
-
What is dynamic binding. Give an example other than variable value.
-
Name a language that is not strongly typed. Indicate why
-
What is strongly typed.
-
What is type checking?
-
What is the difference between key words and reserved words?
-
Give the advangages and disadvantages for a language being case-sensitive.
-
Give EBNF for Ada statements (if, assignment, loop)
-
What is recursion. Trace a recursive program.
-
Write a complete Ada program.
-
When and why was Ada developed?
-
What is syntax?
-
What language was used to describe Algol 60?
-
Name the operations of BNF.
-
To whom do the B and the N in BNF refer? What were they known for?
-
Give a derivation (left-most, right-most)
-
Give a parse tree.
-
What are the three most common extensions of BNF to give EBNF?
-
Give ENBF for: a) a floating point constant. b) a statement construct.
c) something else.
-
What is semantics? Give an example of the difference between syntax
and semantics.
-
What is an ambigous grammar? Give an example.
-
Give an example of a metalanguage.
-
What is the difference between left recursive and right recursive grammars?
-
What is the difference between left recursive and right recursive grammars?
-
Statement-Level Control Structures
-
Concepts discussed in class
-
Concepts discussed in the text
-
Compound Statements
-
Concepts discussed in class
-
Concepts discussed in the text
-
Selection Statements
-
Concepts discussed in class
-
Concepts discussed in the text
-
Iterative Statements
-
Concepts discussed in class
-
Concepts discussed in the text
-
Writing assembler code that would simulate control statements
-
Writing procedures to parse control statements
-
Writing procedures to produce assembler code to generate control statements
-
Questions on Language Presentations and Papers
-
Modula-3
-
Pop-11
-
Eiffel
-
Smalltalk
-
A detailed about your own language and specific topic.
-
Any other related questions.