SERIES_N_1
SERIES_N_1
SERIES_N_1
Series N°1
Exercise 1
Complete the following table:
Decimal Binary Octal Hexadecimal BCD
53
11101
10110
A2.C
13.5
10011.11
3E.A
10000101
89.63
121.43
Exercise 2
Code in binary and gray (reflected binary) the number (31)10.
From the gray code of (31)10, deduce the gray coding of the numbers (32)10, (33)10.
Exercise 3
Perform the following operations in binary, check results in decimal:
a) 11010011 + 11101
b) 11010011 – 11101
c) 11010011 * 11101
d) 11010011 / 11101
Exercise 4
Let A and B be two decimal numbers:
A = 35 and B = 128
1) Give the representation of A and B in BCD
2) Give the representation of A and B in Gray code.
Let C be information coded on 8 bits:
C = 10010110
1) We assume that C is represented in BCD. Give its binary value.
Now, assume that C is represented in Gray code and give its decimal value.
Exercise 5
Perform the following operations in base 16.
A43C+5B0D; 2345+542B; 9F4B+BF1F
Exercise 6
1. Give two's complement representations of the following decimal numbers.
o (122)10 on one byte
o (2025)10 out of sixteen bits. Can we code it on eleven bits?
o (-78)10 on two bytes
o (-700)10 on two bytes
2. Give the decimal representations of the following binary numbers coded in 2's complement.
o (00110101) (encoded on one byte)
o (0001010110001101) (encoded on two bytes)
o (10100110) (encoded on one byte).
Page 1 of 2
Exercise 7
1. Perform the following additions of relative numbers (represented in true complement):
(a) 0110 1011 + 1011 1101 (c) 1001 0110 + 1111 1011
(b) 0110 1111 - 0001 1001 (d) 1000 0010 - 0010 1011
Check the result of the calculations in decimal. Indicate overrun and holdback.
2. Perform the following operations on 5 bits using CA2 (study overflow cases)
a) +9+8 b) -7-13 c) +15+1 d) -15-1
3. Give the translation to which the word 8A50 coded in hexadecimal corresponds, depending
on whether it is read as:
-a signed integer
-an integer represented in C2
4. Perform the following operations on 12 bits (including the sign bit), with the 2's complement
representation. Specify if there is an overflow.
a) (205)8 - (8F5)16 = ?
b) (84F)16 - (0F5)16 = ?
Exercise 8
Let A = (1110111) gray and B = (110010) gray.
a. Give the binary value of A and B
b. Perform the operation C= - A - B in 2's complement on 8 bits. Specify whether there is
overflow.
Exercise 9
Convert the decimal number 8.625 to floating point according to the IEEE 754 standard.
Calculate the decimal value of the number N represented in floating point according to the IEEE 754
standard
N = 40D00000(16)
Exercise 10
Consider the 2 numbers coded according to the IEEE 754 standard and represented in hexadecimal:
3EE00000 and 3D800000
Calculate the sum and give the result in IEEE 754 and in decimal forms.
Same question with the numbers: C8800000 and C8000000.
Exercise 11
1/ Using the ASCII code table code the following message: USTHB 2024-2025
2/ Decode the following message: 4C45542753204449564520494E544F20434F4D505554494E47
0 1 2 3 4 5 6 7 8 9 A B C D E F
Page 2 of 2