Trinity Western University

Assignments From the Textbook, etc.

CMPT 360: Programming Languages (3 S.H.) Spring 2017 A: MWF 1000-1050

Professor: R. Sutcliffe (NEU 17 ext 3213; rsutc@twu.ca)

Hand in the ones from the problem sections from Monday, Wednesday and Friday of a given week on the following Wednesday. Answer in complete sentences and/or provide code as required. The labs are in a separate document.

Note that you are responsible for the content of text chapters covered, even though the lecture coverage will skip some things and add others.


Week I Bolds due Wednesday Week II

1. W Jan 11 Intro and problem domains Read Chapter 1 Q# 1,3,5,7,9  p31-32 P# 3, 4, 6 

2. F Jan 13 Evaluating Notations; p32 Q# 14,15,16,17,18,19,21,25,27 p31-32 P# 5, 8, 15

Week II Bolds due Wednesday Week III

3. M Jan 16 Design Influences p33-34 P# 17

4. W Jan 18  Language History p103-105 Q#7,12,15,20,23,28,35,36,42,43,45 p105-106  P#12, 14

5. F Jan 20 Language History  p103-105 Q#44,48,52-55,61 Read Chapter 2 p105-106  P#16, 17

Week III Bolds due Wednesday Week IV

6. M Jan 23 Syntax and Semantics Read Chapter 3 p156 Q 1,2 Look up VDM-SL and write two paragraphs on it

7. W Jan 25 EBNF p156 Q 7, 8 p157-160 P #2 How does the EBNF for the FOR loop differ between ISO and R10 Modula-2

8. F Jan 27 Parse trees cont'd p156 Q 11, 12 p157-160 P #6, 10, 12, 13

Week IV Bolds due Wednesday Week V

9. M Jan 31 Language Translation, Lexical analysis p156 Q #16,29 Read 4.1, 4.2, p192-193 Q# 2,3,8 p194-195 PE# 11 or 12 (Java, Python, C, C++, or Modula-2)

10. W Feb 1 Parsing Methods Read rest of chapter 4, p192-193 Q# 9,10,11,18,23 p193-194 P# 2

11. F Feb 3 Parsing Algorithms & Attribute Binding p227-228 Q# 1,2,3,4,5, p228ff P# 1,2

Week V Bolds due Wednesday Week VI

12. M Feb 6 Attribute Binding Time & Scope Read Chapter 5 p227-228 Q 7-13 p228ff P#  4, 8, 9

13. W Feb 8 Scope  p227-228 Q 14,15,17,18 p228ff P# 7, 12

14. F Feb 10 Scope & Lifetime; Basic Data Types Read 6.1-6.3 p296-298 Q# 1-4  p298-299 P #1, 2

Week VI Bolds due Wednesday Week VII

             There is no class on Monday February 13 due to Family Day

15. M Feb 15 Data Aggregates1; Read 6.4-6.5 p296-298 Q# 5-9, 12,13,14 p298-299 P# 6, 7, 8

16. W Feb 17 Data Aggregates2;  Read 6.6-6.7 p296-298 Q# 10,11,15,20 p298-299 P# 18

Week VII Bolds due Wednesday Week VIII

17. M Feb 20 MIDTERM Coverage is up to and including 6.5 (standard array types)

18. W Feb 22 Types part 1 Read 6.10-6-11 p296-298 Q# 20-22,29,30 p298-299 P# 13, 14

19. F Feb 24 Types part 2 Read 6.12-6.14 p296-298 Q# 31-36,39-44,47-50 p298-299 P# 20, 21

***There are no classes the week of Feb 27-Mar 3 due to reading break *** 

Week VIII Bolds due Wednesday Week IX

20. M Mar 6 Types Part 3, Type charts, expressions and assignments Read 7.1- 7.3 p325 Q# 1-6 p325-326 P#2, 3, 4, 5, 7 p328 PE#9 (and explain)

21. W Mar 8  Conversions, mixed mode, other issues; Start Control Structures Read 7.4-7.6 p 325 Q# 9-14,18,19,25 p325-326 P# 6 (are they in R10?), 13, 18, 20

22. F Mar 10 Control Structures Read 8.1-8.3 p360-361 Q#1,3,5 p361-362 P# 3, 4, 5

Week IX Bolds due Wednesday Week X

23. M Mar 13 Control Structures Read 8.4-8.6 p360-361 Q#11,12,13,16,17,18,19,20,21,24,26, p361-362 P# 6, 12

24. W Mar 15 Subprograms Read 9.1-9.3 p412-413 Q# 1-5, 8, 10 p413-414 P #3, 5 

25. F Mar 17 More on Parameters Read 9.4-9.6 p412-413 Q# 11, 16, 17, 19, 20, 28 p413-414 P #8, 10, 15 P415-416 PE #7  (explain)

Week X Bolds due Wednesday Week XI

26. M Mar 20 ADTs Read Chapter 11 p484-485 Q# 4,10,19,22,23,32,35 p486 P#1, 2, 10 p486-487 PE#5 (or Modula-2)

27. W Mar 22 Blueprints in Modula2 R10 Look up the R10 website, download a blueprint, and submit an explanation of its contents.

28. F Mar 24 Concurrency Basics Read Chapter 13 p592-5937 # 1-7 p594-595 # 2, 5, 7

Week XI Bolds due Wednesday Week XII

29. M Mar 27 Concurrency Continued p592-594 # 12-15,21,27-29 p594-595 #3,4

30. W Mar 29 Exceptions Read Chapter 14 p628-629 #1,4,6.11-13,19-23 p628-629 #2,8, [10 (any two of C++, C#, Java, Ruby], 12

31. F Mar 31 The type structure of Ada Write a 2p summary of the type structure of R10 Modula-2

Week XII Bolds due Wednesday Week XIII

32. M Apr 3 LISP & Scheme Write a 2p evaluation of Eiffel

33. W Apr 5  Scheme Write a 2p evaluation of Turing

34. W Apr 7 J Write a 2p evaluation of the security issues in php/mysql

Week XIII

 35. F Apr 10 Modula-2 R10

36. M Apr 12 Last class day review and questions


Final Exam