Page 58 - ComputerScience_Class_11
P. 58

Character       Zone bit      Numeric bit     Octal value
                                           Z              01            1001            31
                                           1              00            0001            01
                                           2              00            0010            02
                                           3              00            0011            03
                                           4              00            0100            04
                                           5              00            0101            05
                                           6              00            0110            06
                                           7              00            0111            07
                                           8              00            1000            10
                                           9              00            1001            11
                                           0              00            1010            12
                                           +              11            0000            60
                                           _
                                                          10            0000            40
                                           *              10            1100            54
                                           /              01            0001            21
                                           =              00            1011            13
                                           (              01            1100            34
                                           )              11            1100            74
                                           .              11            1011            73
              The representations are shown below as examples:

              Example 1: Represent JAVA as 6-bit BCD code.
              Answer: The BCD binary notation of the characters are given below:
                                                         J   =  10  0001
                                                        A  =  11 0001
                                                        V  =  01 0101
              Thus, the BCD equivalent is 100001 110001 010101 110001.
              Example 2: Write the Octal notation in BCD coding for the word BAT.
              Answer: The BCD Octal notation of the characters are given below:
                                                        B  =  62
                                                        A  =  61
                                                        T  =  23
              Thus, the BCD octal equivalent is 62 61 23.

              2.1.2 American Standard Code for Information Interchange (ASCII)
              ASCII is the most popular coding scheme used as industry standard in computers and on the web. It was introduced
                                                                             7
              in 1960. Originally, ASCII was designed as a 7-bit character set having 2  or 128 characters. It could represent all digits
              from 0 to 9, uppercase and lowercase English alphabets and some special characters. The ASCII codes of 128 characters
              are listed in the table below:

                                 Decimal         Octal       Hexadecimal       Binary         Value
                                   000            000            000         00000000          NUL
                                   001            001            001         00000001         SOH
                                   002            002            002         00000010          STX
                                   003            003            003         00000011          ETX
                                   004            004            004         00000100          EOT




                   56  Touchpad Computer Science (Ver. 3.0)-XI
   53   54   55   56   57   58   59   60   61   62   63