Click to go to ENCM 369 Winter 2020 HOME PAGE

Author: Steve Norman

Last modified: Sat Feb 1 21:25:05 MST 2020

Please keep these points in mind as you look at old midterms and solutions …

- Course topics and the order of course topics have changed over the many years in which this course has been offered.
- Even in recent years, midterm topics have varied because midterm dates relative to course start dates have varied.

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solutions
- Problem 2 solutions
- Problem 3 answers
- return address calculations for Problem 3
- Problem 4 solutions

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solutions
- Problem 2 solutions
- Problem 3 solutions
- Problem 4 solutions
- Problem 5 solutions
- Problem 6 solutions

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solutions
- Problem 2 solutions
- Problem 3 answers
- return address calculations for Problem 3
- Problem 4 solutions

The test (both documents in PDF format):

Solutions (all documents in PDF format):

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solutions
- Problem 2 solutions
- Problem 3 answers and related notes, for the expected interpretation of the problem
- Problem 3 answers and related notes, for a reasonable alternative interpretation of the problem
- Problem 4 solutions

Correction, posted around 3:30pm Mon Feb 5 2018: The AND calculation in part a of the Problem 4 solutions is incorrect. The value of $t1 should be

[12 zeros]_1010_0110_[12 zeros](0xa is 1010, not 1011.) The given answer is correct—it just looks wrong because of the wrong $t1 value.

Another correction, posted around 10:10pm Mon Feb 5 2018: In Problem 3, the value of $s1 is 0x7fff_eb7c, not 0x7fff_e97c.

The test (both documents in PDF format):

Solutions (all documents in PDF format):

The test (both documents in PDF format):

Solutions (all documents in PDF format):

The test (both documents in PDF format):

Solutions (all documents in PDF format):

The test (both documents in PDF format):

Solutions (all documents in PDF format):

The test (both documents in PDF format):

Solutions (all documents in PDF format):

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solution
- Problem 2 solution
- Problem 3 answers
- Problem 3: Notes about solving the problem
- Problem 4 solution

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solution
- Problem 2 solution
- Problem 3 solution
- Problem 4 solution
- Problem 5 solution
- Problem 6 solution

The test (both documents in PDF format):

Solutions (all documents in PDF format):

The test (both documents in PDF format):

Solutions (all documents in PDF format):

Please keep in mind that topic coverage has varied from year to year, because the midterm has not always been in the sixth week of the term, as it was in 2008 and 2009, or at the beginning of the seventh week, as in 2010. For example, the 2006 midterm was in the eighth week of term, so it covered more topics than the 2008–2010 midterms did.

Topic order changed a little starting in Winter 2005 due to the switch to the 3rd edition of the textbook.

The switch to the 4th edition of the textbook did not change the order of topic coverage in January and February 2009–2012. relative to January and February 2008.

Revisions to the textbook mean that the course content in March and April 2009–2012 was significantly different from course content in March and April 2008. That would have affected use of old final exams, not old midterms.

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solution
- Problem 2 solution
- Problem 3 solution
- Problem 4 solution
- Problem 5 solution
- Problem 6 solution
- Problem 7 solution

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solution
- Problem 2 solution
- Problem 3 answers and marking scheme
- Problem 3: Notes on how to solve the problem quickly
- Problem 4 solutions
- Problem 5 solution
- Problem 6 solutions

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solution, by N. Bartley.
- Problem 2 solution, by S. Norman.
- Problem 3 solution, by S. Norman.
- Problem 3: Assembly language with comments added to show $ra calculations.
- Problem 4 solutions, by S. Norman.
- Problem 5 solutions, by N. Bartley.
- Problem 6 solutions, by N. Bartley.

The test (both documents in PDF format):

*Attention:* Problem 5 on the 2009 midterm is based on
Lab 5 Exercise E of 2009, which
may also be a lab exercise in 2012.
However, in 2012 it would be an *optional* exercise.
There will not be any midterm or final exam questions based on
this lab exercise in 2012.

Solutions (all documents in PDF format):

- Problem 1 solution, by N. Bartley.
- Problem 2 solution, version 1 (with incoming arguments copied to s-registers), by N. Bartley.
- Problem 2 solution, version 2 (with incoming arguments copied to stack slots), by N. Bartley.
- Problem 3 solution, by N. Bartley.
- Problem 4 solution, by S. Norman.
- Problem 5 answers, by S. Norman.
- Problem 5: notes about how to solve the problem, by S. Norman.
- Problem 6 solutions, by S. Norman.

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1 solution and remarks about marking and common errors, by N. Bartley.
- Problem 2 solution and remarks about marking and common errors, by N. Bartley.
- Another Problem 2 solution, with more info about how to get answers, by S. Norman.
- Problem 3, Version 1, solution and remarks about marking and common errors (incoming arguments copied to s-registers), by N. Bartley.
- Problem 3, Version 2, solution and remarks about marking and common errors (incoming arguments copied to stack slots), by N. Bartley.
- Problem 4 solution, by S. Norman.
- Problem 5 solution and remarks about marking and common errors, by S. Norman.
- Problem 6 solution, by S. Norman.

This year's instructors don't have access to the 2007 midterm material.

The test (both documents in PDF format):

Solutions (all documents in PDF format):

- Problem 1, Version 1 (incoming arguments copied to s-registers)
- Problem 1, Version 2 (incoming arguments copied to stack slots)
- Problem 2
- Problem 3
- Problem 4
- Assembly code from Problem 4 with
some instruction addresses added

(useful for understanding how`$ra`values were determined) - Problem 5

The test (both documents in PDF format):

Solutions:

- Problem 1 (ASCII text)
- Problem 2, version 1 (ASCII text)
- Problem 2, version 2 (ASCII text)
- Problem 3 (ASCII text)
- Problem 4 answer (PDF format)
- Notes on solving Problem 4 (PDF format)
- Problem 5 (ASCII text)

The test (both documents in PDF format):

Solutions (all in ASCII text format):

The test (both documents in PDF format):

Solutions (all in ASCII text format):

The test (both documents in PDF format):

Solutions (all in ASCII text format):

The test (both documents in PDF format):

Solutions (all in ASCII text format):

- Solution to Problem 1 (ASCII text)
- Solution to Problem 2 (GIF image)
- Notes on Problem 2 (HTML)
- Solution to Problem 3 (HTML)
- Solution to Problem 4 (HTML)