ECSE 221 - Fall 2006 Midterm

ECSE 221 - Fall 2006 Midterm - ECSE-221A MidTerm Test...

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

View Full Document Right Arrow Icon
ECSE-221A MidTerm Test Initials ________ MidTerm 2006A- 1 Signature: _________________________________ I.D.Number: ________________ Printed Name: ______________________________ McGill University Department of Electrical and Computer Engineering Course ECSE-221A – Introduction to Computer Engineering MidTerm Test Examiner: Prof. T. Arbel Friday, October 27, 2006 INSTRUCTIONS: This is a closed book exam. A FACULTY STANDARD CALCULATOR permitted ONLY . Please answer all questions on the examination sheet itself. PLEASE NOTE CAREFULLY: Sign this paper at the top of this page, fill in your student ID number and print your name legibly. Initial each page of the exam paper in case the sheets should get separated . Make sure the signed paper in its entirety is handed in at the end of the examination. There are 7 questions for a total of 25 marks.
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECSE-221A MidTerm Test Initials ________ MidTerm 2006A- 2 TEST QUESTIONS: Question 1: (3 marks) Convert the following base-10 number to single precision IEEE-754 format: -12.25 x 2 -20 Express the result in hexadecimal. Show all your work. Solution: Converting integer part to binary: 12/2 = 6 R:0 6/2 = 3 R:0 3/2 = 1 R:1 ½ = 1 R:1 12 => 1100 Converting fractional part to binary: 0.25 = 2 -2 => .01 Therefore, -12.25 x 2 -20 = -1100.01 x 2 -20 = -1.10001 x 2 3 x 2 -20 = -1.10001 x 2 -17 Sign = 1 (negative) Mantissa = 10001000000000000000000 Exponent = -17+127 = 110 => 01101110 1011 0111 0100 0100 0000 0000 0000 0000 = B7440000 16
Background image of page 2
ECSE-221A MidTerm Test Initials ________ MidTerm 2006A- 3 Question 2:
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/25/2010 for the course ECSE 221 taught by Professor F.pferrie during the Fall '09 term at McGill.

Page1 / 9

ECSE 221 - Fall 2006 Midterm - ECSE-221A MidTerm Test...

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

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