Docsity

Final Exam Review Sheet - Programming Language Concepts | CS 360, Study notes of Programming Languages

Toggle sidebar
bg1
cs360 Final Exam Review
The Final Exam will be held Monday, June 6th. The Exam for the Tuesday/Thursday
section will at 3:30pm in Randell 326. The Exam for theMonday night will at 6:00pm in
the same room as all previous classes. The Exam will be closed books and closed notes,
and the Exam will be cumulative. The following topics will be covered:
Questions from the previous exams and homework exercises are both execellent study
sources.
Chapter 1 What is a programming language?
Compilation and interpretation, advantages and disadvantages
What is a programming language?
Computational Paradigms
Chapter 2 History
Historic languages and developers
Chapter 3 Language Design Principles
Question 3.1 in Chapter 3, give example in a language of your choice that
promote or violate design principles..
Questions 3.4, 3.5, 3.18
Chapter 4 Syntax
Lexical structure of programming languages
Context-free grammars
Parse trees and ASTs
Ambiguity
Parsing Techniques and tools
Lexics vs syntax vs semantics
Questions 4.4, 4.5, 4.14, 4.19,4.22
Chapter 5 Semantics
Attributes, binding
Declarations, block, and scope
Dynamic versus static
The Symbol table
Allocation, lifetime and the environment
Aliases, dangling references, and garbage
Chapter 6 Data Types
Topics to focus on:
Type Equivalence
Type Checking
pf2

Partial preview of the text

Download Final Exam Review Sheet - Programming Language Concepts | CS 360 and more Study notes Programming Languages in PDF only on Docsity!

cs360 Final Exam Review

The Final Exam will be held Monday, June 6th^. The Exam for the Tuesday/Thursday section will at 3:30pm in Randell 326. The Exam for theMonday night will at 6:00pm in the same room as all previous classes. The Exam will be closed books and closed notes, and the Exam will be cumulative. The following topics will be covered:

Questions from the previous exams and homework exercises are both execellent study sources.

Chapter 1 What is a programming language? Compilation and interpretation, advantages and disadvantages What is a programming language? Computational Paradigms

Chapter 2 History Historic languages and developers

Chapter 3 Language Design Principles Question 3.1 in Chapter 3, give example in a language of your choice that promote or violate design principles.. Questions 3.4, 3.5, 3.

Chapter 4 Syntax Lexical structure of programming languages Context-free grammars Parse trees and ASTs Ambiguity Parsing Techniques and tools Lexics vs syntax vs semantics

Questions 4.4, 4.5, 4.14, 4.19,4.

Chapter 5 Semantics Attributes, binding Declarations, block, and scope Dynamic versus static The Symbol table Allocation, lifetime and the environment Aliases, dangling references, and garbage

Chapter 6 Data Types

Topics to focus on: Type Equivalence Type Checking

Type Conversion Type Inference (the books uses the term Polymorphic Type Checking) Dynamic versus Static Type Checking What is a type?

You need to know the Hindley-Milner Type Inference Algorithm. Exercises from the end of Chapter 6 are good to go over as well as the homework 3.

Chapter 7 and 8

Exception Handling 7. Exception Handling and Environments 8. Activation records Procedure environments, activations, and allocation

You should be able to illustrate an exception being propagated up the runtime call stack, and indicate the method that catches an exception and where execution in the program source resumes.

Exercises at the end of 7 and 8 corresponding the exceptions are good to go over.

Chapter 10 Object-oriented programming Inheritance, Encapsulation, polymorphism Dynamic binding Vtables and implementation issues of multiple inheritance Constant pool table in Java Static versus dynamic resolution

Chapter 11 Functional Programming Programs as functions Functional programming in an imperative language Scheme List functions, high order functions, Lambda calculus

Questions 11.1, 11.5, 11.14,

Term Project

You need to understand scanner and parser implementation and execution. In addition, CFGs, ASTs, and implementation of ASTs might be covered. The final part of the course project, namely, the interpreter and how to interpret the semantics into executable code will be covered.

Any terminology from the course is fair game.