



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Last Name: First Name:. Instructions:
1. Use the first page of this document as the cover page.
Problem 3 [4] Add the following twoโs complement numbers and express the answers in both binary and decimal. (The table is provided for your convenience) 1 0 1 1 + 01011001 =
Binary Decimal Problem 4 [4] Calculate the results of the following arithmetic operations on 16-bit 2's complement numbers. The numbers are encoded in hexadecimal, as indicated by the prefix "0x". You may do the calculations in binary, decimal or hex, but convert your answer to hexadecimal. State whether overflow has occurred (circle one). 0x0224 โ 0x Answer: Circle one: overflow no overflow Problem 5 [3+3+3+3+3+3 = 18] a. What is the minimal number of bits needed to represent the following 2 โs complement numbers written in hexadecimal format ( โ0xโ is the prefix that indicates the hexadecimal format):
Problem 8 [4+4+4+4 = 16] Find the equivalent IEEE 754 floating point representation for the decimal numbers below. a) -0. b) 65. c) 2048 d) -118. Problem 9 [2+2+2+2+2=10] Compute the following logic operations. Write your results in binary. (You can use the tables to facilitate the calculations, but you donโt have to) a) 10101010 AND 10100011 b) 00111101 OR 01011111 c) (( 11000011 ) OR (NOT( 01110111 ))) AND (NOT( 00000000 )) d) (NOT( 00111011 ) NOR (NOT( 00001111 ))) NAND (NOT( 00011100 )) (Add more rows to the table if you need to.)
e) (NOT( 01100110 ) NAND ( 00111101 )) NOR (NOT( 11011100 )) (Add more rows to the table if you need to.) Problem 10 [10] Fill up the blanks in the truth table with suitable values. Output1 = NOT(Y) NAND (NOT(Z) OR X) Output2 = Y AND (X OR NOT(Z)) Output3 = NOT(X) NOR (Z AND NOT(Y)) X Y Z NOT X
Out 1
Out 2 Out 3 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1