Sample Exam - CDA 3101 Exam1 (Fall 2006) Time: 1 hr. 30...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CDA 3101 Exam1 (Fall 2006) Time: 1 hr. 30 mins. Honor Code Statement On my honor, I have neither given nor received unauthorized aid on this exam. _______________________ ________________________ Signature UFID 1. (a). (10 points) Write (in binary) the IEEE 754 single-precision representation of the number 20.75 10 . Show all work. (b). (5 points) Say f 1 , f 2 , f 3 , …., f n are the consecutive decimal numbers that can be represented in the interval 4 10 to 8 10 . Find the values f i+1 – f i , i=1. .(n-1), assuming IEEE 754 double-precision floating point representation is used. You can leave your answer in powers of 2. Show all work.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. (40 points) Implement the recursive function foo() given below in the MIPS assembly language. Be sure to follow the procedure call conventions (pass arguments in $a0- $a3, pass return values in $v0-$v1, saving appropriate registers) appropriately. (Assume that the value of x entered is always small enough so that the output of foo will fit 32-bit 2’s complement representation)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

Sample Exam - CDA 3101 Exam1 (Fall 2006) Time: 1 hr. 30...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online