assignment 1 - lab

2
MTN3013 COMPUTER ARCHITECTURE AND ORGANIZATION SEM 1 2014/15 1 @salmanfirdaussem1201415 Assignment 1 1. Write IEEE floating point representation of the following decimal numbers. i. 3.75 ii. -55 23/64 iii. 64000 (5 marks each) 2. Write the decimal equivalent for these IEEE floating point numbers i. 0 10000000 00000000000000000000000 ii. 1 10000011 00010000000000000000000 iii. 0 11111111 00000000000000000000000 iv. 1 10000000 10010000000000000000000 (4 marks each) 3. Convert the following unsigned binary numbers to hexadecimal. i. 1101 0001 1010 1111 ii. 001 1111 iii. 1 iv. 1110 1101 1011 0010 (3 marks each) 4. Convert the following hexadecimal numbers to binary. i. x10 ii. x801 iii. xF731 iv. x0F1E2D v. xBCAD (3 marks each) 5. Convert the following hexadecimal representantion of 2’s complement binary numbers to decimal numbers. i. xF0 ii. x7FF iii. x16 iv. x8000 (4 marks each) 6. Convert the following decimal numbers to hexedecimal representation of 2’s complement numbers. i. 256 ii. 111 iii. -44 (4 marks each)

Upload: abu-fahmi

Post on 04-Feb-2016

171 views

Category:

Documents


1 download

DESCRIPTION

Lab Assignment

TRANSCRIPT

Page 1: Assignment 1 - Lab

MTN3013 COMPUTER ARCHITECTURE AND ORGANIZATION SEM 1 2014/15

1 @salmanfirdaussem1201415

Assignment 1

1. Write IEEE floating point representation of the following decimal numbers.

i. 3.75

ii. -55 23/64

iii. 64000

(5 marks each)

2. Write the decimal equivalent for these IEEE floating point numbers

i. 0 10000000 00000000000000000000000

ii. 1 10000011 00010000000000000000000

iii. 0 11111111 00000000000000000000000

iv. 1 10000000 10010000000000000000000

(4 marks each)

3. Convert the following unsigned binary numbers to hexadecimal.

i. 1101 0001 1010 1111

ii. 001 1111

iii. 1

iv. 1110 1101 1011 0010

(3 marks each)

4. Convert the following hexadecimal numbers to binary.

i. x10

ii. x801

iii. xF731

iv. x0F1E2D

v. xBCAD

(3 marks each)

5. Convert the following hexadecimal representantion of 2’s complement binary numbers to

decimal numbers.

i. xF0

ii. x7FF

iii. x16

iv. x8000

(4 marks each)

6. Convert the following decimal numbers to hexedecimal representation of 2’s complement

numbers.

i. 256

ii. 111

iii. -44

(4 marks each)

Page 2: Assignment 1 - Lab

MTN3013 COMPUTER ARCHITECTURE AND ORGANIZATION SEM 1 2014/15

2 @salmanfirdaussem1201415

7. Perform the following additions. The corresponding 16-bit binary numbers are in 2’s

complement notation. Provide your answers in hexadecimal.

i. X025B + x26DE

ii. X7D96 + xF0A0

iii. xA397 + xA35D

iv. x7D96 + x7412

(4 marks each)

8. What is the hexedecimal representation of 675.625?

(5 marks each)

9. Answer the following arithmatic operation in binary.

i. 01010111 + 11010111

ii. 1111 + 100001111 + 0111

(3 marks each)

10. Find out the answer for the following arithmatic operation. State your answer in any number

system given in the question.

i. X3F0 + 12348

ii. 2345 + 1234

(6 marks each)