Docsity

Quiz 5 with Answer Key for Machine Dependent Program | ECS 050, Quizzes of Computer Science

Partial preview of the text

Download Quiz 5 with Answer Key for Machine Dependent Program | ECS 050 and more Quizzes Computer Science in PDF only on Docsity!

Name: _____Answer Key_________

ECS 50 Winter 2004 Section 1 Quiz 5 3/5/

  1. Consider the following instructions in RISC machine, li $2, 3 sw $2, x MIPS are actually taking ______ instructions to do that.

A. 2

B. 3

C. 4

D. 5

li = 1 instruction sw = 3 instructions

Answer: _____C______

  1. In MIPS, return address of a subroutine is put on

A. Stack B. Register $ C. Register $ D. Register $

Answer: _____D_______