october_2002

october_2002 - Department of Electrical and Computer...

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

View Full Document Right Arrow Icon
Department of Electrical and Computer Engineering McGill University 304-221A Introduction to Computer Engineering I Mid Term Exam Examiner: F.P. Ferrie Date: October 16 th , 2002 Question 1 (2 points) Determine the real number that corresponds to 2410ce94 16 , assuming that the latter is encoded using single precision IEEE 754 representation. Compute your answer to 3 significant figures. Question 2 (2 points) The following line of “C” code is executed: scanf("%d",&data1); If the variable data1 corresponds to type int , then what is the binary pattern stored in data1 if the character string -324 is read as input? Assume that the machine on which this code is run represents integers using 16-bit words, and express your answer in hexadecimal. Why is the operator needed? Question 3 (2 points) How many distinct floating point numbers can be represented using the IEEE 754 single precision scheme? In computing your answer, ignore the special case of de-normalized numbers (we did not cover this in the course). Question 4
Background image of page 1

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

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

Page1 / 2

october_2002 - Department of Electrical and Computer...

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

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