Page 47 - Computer Science Class 11 Without Functions
P. 47

Example 12: Convert (E7)  to its equivalent octal number.
                                  16
            Step 1: Hexadecimal to Binary

                  E          7
                  ↓          ↓
                 1110      0111
            Binary equivalent of (E7)  is (11100111) 2
                                  16
            Step 2: Binary to octal
                     added one 0
               0    1    1  1 0    0 1    1 1


                  3        4        7
            Octal equivalent of (11100111)  is (347) 8
                                       2
            Alternatively,  you  may  first  convert  the  hexadecimal  number  to  its  decimal  equivalent  and  then  find  the  octal
            representation of the decimal number.




                    Find octal representation of (14) , (23) and (81) .
                                                            16
                                                    16
                                              16
            Perform the following conversions:
              a.  (436)  to binary
                      10
              b.  (11011)  to decimal
                        2
              c.  (195)  to octal
                      10
              d.  (706) to decimal
                      8
              e.  (942)  to hexadecimal
                      10
              f.  (A19)  to decimal
                      16
              g.  (1010110)   to octal
                           2
              h.  (732)  to binary
                      8
              i.  (101011100)  to hexadecimal
                             2
              j.  (F31)  to binary
                      16
              k.  (474)  to hexadecimal
                      8
              l.  (C8E)  to octal
                      16
            Ans.  a. (436)  to binary
                         10
                   2   436         Remainder
                   2   218            0
                   2   109            0
                   2     54           1

                   2     27           0
                   2     13           1
                   2      6           1
                   2      3           0
                   2      1           1

                   2      0           1

                 (436)  = (110110100) 2
                      10

                                                                            Number Systems and Encoding Schemes  45
   42   43   44   45   46   47   48   49   50   51   52