CS 61C (Fall 2007)

Quiz 7

Two questions, submit as "quiz7".  Due 2:45pm before lecture 9/14/2007.


To be very clear, you should submit one and only one file template.txt which contains your answers, by running submit quiz7.
Any files not named template.txt will be ignored, without exception!


1.

For a given function, which programming language likely takes the most lines of code? Put the three languages in order from the least number of lines of code to the most.
  1. Java
  2. C
  3. MIPS Assembly

2.

Write the MIPS assembly code for the C statement k++, assuming k is stored in $s1.