Vous êtes sur la page 1sur 3

1ère année ST TP 02 Informatique 1

Université Hamma Lakhder


ère
1 année LMD Sciences et Techniques
Module : Informatique 1

‫رقم الفوج‬ ‫الرقم التعريفي‬ ‫االسـم واللقب‬


24 202039064642 ‫بده زكري زياد‬ ‫الطالب األول‬
18 202039064639 ‫قرفي جمال الدين‬ ‫الطالب الثاني‬
24 202039064578 ‫نعيمي عبد العالي‬ ‫الطالب الثالث‬
28 171939078858 ‫مسعودي خالد‬ ‫الطالب الرابع‬
Exercice : 1 (Codage de l’information) :

1. Compléter le tableau suivant en effectuant les conversions nécessaires en utilisant le


transcodage (conversion de base):

Binaire
10 10000 110001 1101010 11111111 100000000 111101110011010

Décimale
2 16 49 106 255 256 31642

Octal
2 20 61 152 377 400 75632

Hexadécimale
2 10 31 6A FF 100 7B9A

2. Effectuer les conversions suivantes :

a) (651)8 = (1*80+5*81+6*82)10=(425)10 = (1A9)16


b) (1011100001)2 = (737)10 = (2E1)16
c) (EFE)16 =(3838)10 = (111011111110)2
d) ( 645)10 =(1010000101)2 =(285)16
Méthode :
a) - octal vers décimal:
(651)8= ((1*80)+(5*81)+(6*82))10 = 384+40+1 = (425)10
- décimal vers Hexadécimal:
425
16
……………………………………………………………………………
9 26 16
10 1 16
……………………………… (425)10 = (1A9)16
1 0

1
M. Berhoum Adel Codage de l’information 2021
1ère année ST TP 02 Informatique 1

b) - Binaire vers décimal:


(1011100001)2= (1*20)+(0*21)+(0*22) +(0*23) +(0*24) +(1*25) +(1*26)
+(1*27) +(0*28) +(1*29)
= 1+0+0+0+0+32+64+128+0+512 = (737)10
- Binaire vers Hexadécimal:
(0010 1110 0001)2
( 2 E 1 )16
c) - Hexadécimal vers décimal:
(EFE)16= (14*160)+(15*161)+(14*162) = 3584 + 240 + 14 = (3838)10
- Hexadécimal vers Binaire:
(EFE)16 = ( 1110 1111 1110 )2

d) - Décimal vers binaire:


……………………………………………………………………………
2
645
1 322 2
……………………………… (645)10 = ( 10 1000 0101 )2
0 161 2
1 80 2 = ( 2 8 5 )16
0 40 2
0 20 2
0 10 2
0 5 2
1 2 2
0 1 2
1 0

2
M. Berhoum Adel Codage de l’information 2021
1ère année ST TP 02 Informatique 1

Exercice 2 : (Addition et soustraction en binaire)

0 0 1 1 0 0 0 1 1 0
+ 0 1 1 1 0 - 0 1 1 1 0

1 0 1 0 0 - 1 0 0 0

1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 0
+ 0 0 0 1 1 1 0 0 - 0 0 0 1 1 1 0 0

1 1 0 0 0 0 1 0 1 0 0 0 1 0 1 0

1 1 1 1 1 1 1 1 1 1
+ 0 1 1 1 0 - 0 1 1 1 0
0 1 1 1 1 0 1 1 1 1

1 1 1 1 0 0 1 0

3
M. Berhoum Adel Codage de l’information 2021

Vous aimerez peut-être aussi