CSE341: Programming Languages��Section 10
Final-Exam Review
Spring 2023
Subtyping
Question 9 from Spring 19 practice final
Mixins
Question 7 from Spring 19 practice final
Soundness and Completeness
Soundness and Completeness
Programs for which there is >= 1 input that makes the program do bad thing X
All possible programs
(in syntax of some language)
Programs for which there is no input that makes the program do bad thing X
Type system accepting these programs is sound but incomplete (common goal)
Soundness and Completeness
Programs for which there is >= 1 input that makes the program do bad thing X
All possible programs
(in syntax of some language)
Programs for which there is no input that makes the program do bad thing X
Type system accepting these programs is unsound and incomplete
Soundness and Completeness
Programs for which there is >= 1 input that makes the program do bad thing X
All possible programs
(in syntax of some language)
Programs for which there is no input that makes the program do bad thing X
Type system accepting these programs is unsound and is complete
Soundness and Completeness
Programs for which there is >= 1 input that makes the program do bad thing X
All possible programs
(in syntax of some language)
Programs for which there is no input that makes the program do bad thing X
Type system accepting these programs is sound and complete (impossible if type-checker always terminates)
Question 6 from Autumn 17 practice final
Memoization
CSE 341: Programming Languages
12
Factorial (!) with a cache
OOP Approach = “By Row”
Question 8 from Autumn 17 practice final