ΠΛΗ10 ΜΑΘΗΜΑ 1.2

download ΠΛΗ10 ΜΑΘΗΜΑ 1.2

of 43

  • date post

    09-Feb-2017
  • Category

    Education

  • view

    2.555
  • download

    0

Embed Size (px)

Transcript of ΠΛΗ10 ΜΑΘΗΜΑ 1.2

  • 10 1: /

    1.2:

  • A. 1.

    1. 2. 3. 4. 5.

    2. 1. 2. 3. 8 16 4.

    3. 1.

    2.

    2 , 10, 1.2:

    4.

    1. Bits, Bytes 2. 3. 4.

    15.

    2

    5. 21. 2.

  • : 5649184

    :5649184 5833

    A. 1. 1.

    3 , 10, 1.2:

    ( ):

    (). . 10 1

    ( 10-) .

    5649184

    5833

    11

    1

    2

  • 1: 11011011100

    :11011011100 1010010

    A. 1. 2.

    2-

    4 , 10, 1.2:

    : 3 (2 ) :

    0 0 0 0 : 0 ( ) 0 0 1 1 1 : 1 ( ) 0 1 1 2 10 : 0 ( 1) 1 1 1 3 11 : 1 ( 1)

    11011011100

    1010010

    1111

    2: 1011.0110.111

    :11011011100 1010010

    1011.01 10.111

    1110.001

    1111

  • 1: :

    I. 110111010

    II. 110.001110.01101

    III. 11011.0011

    5 , 10, 1.2:

    A. 1. 2. ()

  • 2: .

    10010111

    6 , 10, 1.2:

    A. 1. 2. ()

  • A. 1. 3.

    8-

    7 , 10, 1.2:

    : 15 (7+7+1). :

    .. 6 6 0 14 6 1

    0 81 92 103 114 125 136 147 15

    0 1

  • A. 1. 2.

    1: 243072714

    : 243072714 27223

    2: 57.0711.231

    :57.0711.231 70.321

    8 , 10, 1.2:

    243072714

    27223

    11

    57.0711.231

    70.32 1

    11

  • 1: :

    I. 712.076.17

    II. 777.771.01

    III. 523675

    9 , 10, 1.2:

    A. 1. 2. ()

  • 2: .

    13752

    10 , 10, 1.2:

    A. 1. 2. ()

  • A. 1. 4.

    16-

    11 , 10, 1.2:

    :

    31 (15+15+1). :

    ..: 5

    5 0 12

    C 0 18

    2 1 28

    C 1

    0 16

    1 17

    2 18

    3 19

    4 20

    5 21

    6 22

    7 23

    8 24

    9 25

    10() 26

    11() 27

    12(C) 28

    13(D) 29

    14(E) 30

    15(F) 31

    1 0

  • A. 1. 4.

    1: 16F15739

    :16F15739 6E2A

    1: . 811. 802

    : . 811. 802 7.012

    12 , 10, 1.2:

    16F15739

    6E2A

    1

    AA.811C.802

    C7.0 12

    11

  • 1: 16 :

    I.

    II. 19". 20. #$

    III. %$##$%

    13 , 10, 1.2:

    A. 1. 4. ()

  • 2: 16 .

    23"

    14 , 10, 1.2:

    A. 1. 4. ()

  • A. 1. 5.

    : b- b

    15 , 10, 1.2:

    : :

    I. 311.13&23.21&

    II. 712.66'83.771'

    : (b-1)+(b-1)+1=2b-1 0 b-1 b 2b-1

  • : 3549(378

    :3549(378 3171

    A. 2. 1.

    16 , 10, 1.2:

    ().

    .

    3 5 4 9

    3 7 8(3 1 7 1

    14

    4

  • :3249(378

    :3249(378

    2871

    A. 2. 1.

    17 , 10, 1.2:

    :

    3 2 4 9

    3 7 8(

    2 8 7 1

    1412

    :3079(288

    :3079(288

    2791

    :300079(288

    :

    300079(288

    299791

    3 0 7 9

    2 8 8(

    2 7 9 1

    17103 0 0 0 7 9

    2 8 8(

    2 9 9 7 9 1

    1010 10 17

    41 311 1 1 3

  • :

    I. 10.16(8.396

    II. 112(181

    III. ( 121 ( 189

    18 , 10, 1.2:

    A. 2. 1. ()

  • : 1101(110

    :1101(110 111

    A. 2. 2.

    :

    . .

    19 , 10, 1.2:

    . !

    1 1 0 1

    1 1 0(

    0 1 1 1

    23

    21

  • 4: 111000(101011

    :111000(101011 1101

    2: 1001(111

    :1001(111 10

    A. 2. 1.

    20 , 10, 1.2:

    1 0 0 1

    1 1 1(

    0 0 1 0

    22

    1

    3: 1010(101

    :1010(101 101

    5: 101.001(11.1001

    :101.001(11.1001 1.1001

    1 1 1 0 0 0

    (

    0 0 1 1 0 1

    2 2 2

    1 0 1 0 1 1

    3

    2

    1 0 1 0

    1 0 1(

    0 1 0 1

    22

    1 1

    2121

    1 0 1 . 0 0 1

    (

    0 0 1 . 1 0 0 1

    1 1 . 1 0 0 11

    22

    2

    3

    2

    2

    1

  • 1:

    I. 1010.11(111.101

    II. 1000(11.0001

    III. 11.01(100.101

    21 , 10, 1.2:

    A. 2. 2. ()

  • 1: 732(64

    :732(64 646

    A. 2. 3.

    , , : . .

    16 , , : . .

    22 , 10, 1.2:

    7 3 2

    6 4(

    6 4 6

    1011

    71

    16 . .

    : C(2F

    :(2# 7"

    C A A

    2 F(

    C 7 B

    1010

    152

    1226

    11

    3

    712

  • :

    I. 71.01(16.54

    II. . 1(1.

    III. 2. #(#8.

    23 , 10, 1.2:

    A. 2. 3. ()

  • A. 2. 4.

    :

    : b

    24 , 10, 1.2:

    : :

    I. 311.13&(23.21&

    II. 712.66'(83.771'

  • 1: 4* 5

    :4* 5 20

    A. 3. 1.

    .

    25 , 10, 1.2:

    2: 100* 101

    :100* 101 10100

    55

    105

    155

    20

    1

    2

    3

    4

    101101

    1010101

    1111101

    10100

    1

    10

    11

    100

  • 1: 17/5

    :17/5=3 2

    A. 3. 2.

    .

    26 , 10, 1.2:

    2: 10001/101

    :10001/101=11 10

    175(

    125(

    75(

    2

    1

    2

    3

    10001101(

    1100101(

    111101(

    10STOP.

  • A. 4. 1. Bits, Bytes

    ( ) .

    ( 0 1) bit. .

    8 bits 1 byte. 1 byte

    ASCII . ,

    .

    27 , 10, 1.2:

    ... 1 0 1 1 0 0 1 1 1 1 0 0 1 0 1 1 0 ...

    1 byte 1 byte

    bit bit bit bit bit bit bit bit

  • : : 01001000 01000101 01011100 01011100 01000001 01010011

    H E L L A S

    :17/5=3 2

    A. 4. 1. Bits, Bytes

    ASCII bytes!

    28 , 10, 1.2:

  • A. 4. 2.

    bits ( bits ). ( 1 byte)

    byte = 8

    29 , 10, 1.2:

    8: 28 ,

    0 28-1 ( 0 255)

    (Most Significant Bit MSB) (Least Significant Bit LSB)

    00000000 = 000000001 = 100000010 = 200000011 = 311111100 = 25211111101 = 25311111110 = 254 11111111 = 255

    8(1 byte)

  • A. 4. 2.

    bits .

    bits .

    bits (overflow) bits .

    30 , 10, 1.2:

    : 8 (1 byte) : 254, 12, 515

    : 25411111110. 8 : 11111110

    121100. 8 : 00001100

    515100000011. 8 : 00000011 ( )

  • : 8. (overflow);

    I. 16

    II. F0

    III. 477

    31 , 10, 1.2:

    A. 4. 2.

  • A. 4. 3.

    3 : 1 . bit (SB) (0 (+) 1 (-) )

    32 , 10, 1.2:

    8:

    28-2 =254 127 127

    .

    ! 0

    .

    !

    00000000 = +000000001 = +100000010 = +200000011 = +301111100 = +12401111101 = +12501111110 = +12601111111 = +12710000000 = -010000001 = -110000010 = -210000011 = -311111100 = -12411111101 = -12511111110 = -126 11111111 = -127

    1 0 1 1 0 0 1 1

  • A. 4. 3. 1

    3 : 2 1. : bits : 0 1 1 0

    33 , 10, 1.2:

    8:

    28-1 = 255 127 127

    0.

    ! 0

    .

    2!

    00000000 = +000000001 = +100000010 = +200000011 = +301111100 = +12401111101 = +12501111110 = +12601111111 = +12710000000 = -12710000001 = -12610000010 = -12510000011 = -12411111100 = -311111101 = -211111110 = -1 11111111 = -0

  • A. 4. 3. 2

    3 : 3 2. : 1

    34 , 10, 1.2:

    8:

    -7: +7 : 00000111 1 : 11111000

    +1 2 :11111001

    (7 11111001

    : 0. ,

    .

    00000000 = +000000001 = +100000010 = +200000011 = +301111100 = +12401111101 = +12501111110 = +12601111111 = +12710000000 = -12810000001 = -12710000010 = -12610000011 = -12511111100 = -411111101 = -311111110 = -2 11111111 = -1

  • A. 4. 3. 2

    , 2 , :

    2 . .

    35 , 10, 1.2:

    11111001 8::

    : 11111001 1 : 00000110

    +1 2 :00000111

    : (7

  • 1: 2 2 4 8:

    I. (5

    II. (31

    III. (1F

    36 , 10, 1.2:

    A. 4. 3. 2

  • 2: 8 2. :

    I. 00000101

    II. 10100101

    III. 11100111

    37 , 10, 1.2:

    A. 4. 3. 2

  • A. 5. 1. 2

    2 :

    2 !

    38 , 10, 1.2:

    : 15+17, 15-17, -15+17, -15-17 2 8 .

    : :

    15 : 00001111

    -15: +15 : 00001111 1 : 11110000

    +1 2 :11110001

    -15 : 11110001

    17 : 00010001

    -17: +17 : 00010001 1 : 11101110

    +1 2 :11101111

    -17 : 11101111

  • A. 5. 1. 2