Series1 of tutorials MS1
Series1 of tutorials MS1
NTIC FACULTY
1st year ING
MODULE MS1
Exercise 2:
1- Let be the decimal number X= 4a5 + 2a3 + a + 5 such that a is an integer (a>5).
Express X in base a
2- Express the decimal numbers X, Y, Z in base a (a is an integer/ a>1).
X= a, Y= a2, Z=a3
Exercise 3:
Determine the pairs of integers (x,y) such that :
(x y)7 = (y x)10
Exercise 4:
1- Given the decimal number X= 512, express X in base 2, 4, 8 and 16.
2- Given the number Y = ( 11010110101 )2
Express the number Y directly in base 4, 8 and 16, without using base 10.
3- Express the numbers X = (1323)4 , Y= (3765)8 , Z= (AB1F9)16 directly in base 2
without using the division procedure.
Exercise 5:
1- Add the following binary numbers: X=(101101)2 and Y= (110110)2
2- Add the following two numbers in base 8: X=(735)8 and Y=(132)8
3- Add in hexadecimal the two numbers X=(A1F)16 and Y=(9BC)16
Exercise 6:
Given the numbers: X= 18 and Y= 30.
1- Express the integers X, -X, Y and -Y on six bits in SAV, CP1 and CP2.
Is this codification possible on five bits? Justify this.
2- If possible, perform the following operations in SAV, CP1 and CP2: X-Y, Y-X, -X-Y.
Exercise 7:
Given the integer numbers: X= (1101011) in CP1, Y=(11001100) in CP2,
Z= (0100111) in CP1 and T= (0101101) in CP2.
Give the sign and decimal value of each number.
UNIVERSITY ABDELHAMID MEHRI CONSTANTINE2 2024/2025
NTIC FACULTY
1st year ING
MODULE MS1
Exercise 8:
1- Express the following real numbers in binary: 112.125; 237.25; 128.75
2- Express the following real numbers in decimal: (111.01101)2; (101.10101)2
3- Perform the following arithmetic operations: 112.125 + 237.25 and
(111.01101)2+(101.10101)2
Exercise 9:
1- Using the IEEE-754 standard, give the code for the following real numbers:
X= 27.25; Y= -13.5; Z= 0.375
2- X is a real number coded according to the IEEE-754 standard. Write X in real form.
X=(11011000011010110000000000000000)
Exercise 10:
Let be the positive integers A, B and C such that: A = 109; B = 18 and C = 36.
1- Express A, B and C in base 2.
2- Perform the arithmetic operations: A+B; A+C and B+C in SAV, CP1 and CP2.
Specify the number of bits required for each operation.
3- Perform the operations A-B-C; B-A-C in SAV, CP1 and CP2 on 8 bits if possible.
Exercise 11:
1- Let the real number X= 4015, 9375 .
a- Express X in base 16, then deduce X in base 2 and base 8.
b- Let the real number Y = (50,1)16
b-1- Calculate the real number Z= X+Y in base 16, deduce Z in base 10 then in base2.
2 3
b-2- Express the numbers √𝑍 and √𝑍 in base 2 then in base 10.
𝑛
b-3- Give the largest value of the natural number n so that the integer √𝑍 is strictly
greater than 1.
2- Let the real number A = (FAF,F)16
a- Express A as A= ±1,M. 2E
b- Give the internal binary representation of A according to the IEEE-754 standard in
single precision (on 32 bits).
c- Give the internal hexadecimal representation of A.
d- Deduce the internal hexadecimal representation of the number B = -A.