• Data Representation

     

    Q-4 Data Representation ASCII with their code and details.

    Ans.

    The ASCII table has 128 characters, with values from 0 through 127. Thus, 7 bits are sufficient to represent a character in ASCII; however, most computers typically reserve 1 byte, (8 bits), for an ASCII character. One byte allows a numeric range from 0 through 255 which leaves room for growth in the size of the character set, or for a sign bit. Consequently, a character data type may optionally represent signed values; however, for now, we will assume that character data types are unsigned, i.e. positive integer values, in the range 0-127.

     

    ASCII code divided in four parts

    ·         Symbol (33-47) ASCII value.

    ·         Number (48-57) ASCII value.

    ·         Upper case character (65 – 90) ASCII value.

    ·         Lower case character(97 – 122) ASCII value.

     

    Symbol E.g.

    ASCII

    Symbol

    33

    !

    34

    35

    #

    36

    $

    37

    %

    38

    &

    39

    40

    (

    41

    )

    42

    *

    43

    +

    44

    ,

    45

    -

    46

    .

    47

    /

     

    Number E.g.

     

    ASCII

    Symbol

    48

    0

    49

    1

    50

    2

    51

    3

    52

    4

    53

    5

    54

    6

    55

    7

    56

    8

    57

    9


    Upper case and lower case E.g.

    ASCII

    Symbol

    ASCII

    Symbol

    ASCII

    Symbol

    ASCII

    Symbol

    65

    A

    78

    N

    97

    a

    110

    n

    66

    B

    79

    O

    98

    b

    111

    o

    67

    C

    80

    P

    99

    c

    112

    p

    68

    D

    81

    Q

    100

    d

    113

    q

    69

    E

    82

    R

    101

    e

    114

    r

    70

    F

    83

    S

    102

    f

    115

    s

    71

    G

    84

    T

    103

    g

    116

    t

    72

    H

    85

    U

    104

    h

    117

    u

    73

    I

    86

    V

    105

    i

    118

    v

    74

    J

    87

    W

    106

    j

    119

    w

    75

    K

    88

    X

    107

    k

    120

    x

    76

    L

    89

    Y

    108

    l

    121

    y

    77

    M

    90

    Z

    109

    m

    122

    z

     

    Back


    Home

  • No Comment to " Data Representation "