# Q3 Solution - Name Student Number Trent University Computer...

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

Name: ______________________ Student Number: _____________________ Trent University Computer Science 230H Fall 2007 Quiz #3 Topic: ALU Total of 15 marks Open Text Book Duration: 1 hour 1. [2 marks] Give the binary value, as an eight-bit signed integer, of the decimal number -60 if we are using: a) Sign-magnitude format 10111100 b) Twos complement format 11000100 2. [5 marks] Perform the following operations on signed 6-bit twos complement integers. Indicate whether an overflow will occur or not. a) 011011 27 + 001100 + 12 100111 – overflow 39 b) 010011 19 +111011 - 5 (1)001110 – no overflow 14 (a carry is not an overflow) c) 011010 26 - 111110 + 2 011100 – no overflow 28 d) 100011 (-29) - 011011 - 27 (1)001000 – overflow (-56) (a carry is not an overflow) e) 100011 (-29) + 011011 + 27 111110 – no overflow (-2) 1

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

View Full Document
Name: ______________________ Student Number: _____________________ 3. [4 marks] Perform the multiplication of the following 5-bit signed twos complement integers using Booth’s Algorithm. 10101 x 11010
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/14/2010 for the course COMPUTER S COIS-3030 taught by Professor Hircock during the Spring '10 term at Trent University.

### Page1 / 3

Q3 Solution - Name Student Number Trent University Computer...

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

View Full Document
Ask a homework question - tutors are online