Rules and Tricks For Binary Coding-Decoding

May 13, 2017    

Introduction


  • Binary means only 0(zero) and 1(one).
  • Decimal means from 0(zero) to 9(nine).
  • In binary, the base is 2.
  • In decimal, the base is 10.
  • Remember: - 2^0 =1, 2^1 =2, 2^2=4, 2^3=8, 2^4 =16 and so on…

Binary to decimal conversion:

Approach 1

Example:Convert 100 in decimal

Starting from the left end of this number, multiply with the 2^0 then 2^1 and so on. Then add these all.
1*2^2 + 0*2^1 + 0*2^0 = 1*4 + 0*2 + 0*1 =4

Approach 2

Write this number 100 and just below it, start writing 2^0, 2^1 and so on from the left end of this number. Then eliminate the number which coincides with zero and then add all left numbers.

100

421
Remove 1 and 2 as it coincides with 0. The left number is our result.

100010---32 16 8 4 2 1, remove those numbers which coincide with zero and then add the left numbers. After removing the numbers, the left numbers are 32 and 2. Add these numbers. After adding we get 34. This is the required decimal number.


Decimal to binary conversion:

Example: Convert 15 in binary.

One question to make it clear: -

In a certain code, the symbol for 0 is * and for 1 is #.
There are no other symbols for all other numbers greater than one.
The numbers greater than 1 are to be written only by using the two symbols give above.
The value of symbol for 1 doubles itself every time it shifts one place to the left.

  • ‘0’ is written as *
  • ‘1’ is written as #
  • ‘2’ is written as #*
  • ‘3’ is written as ##
  • ‘4’ is written as #**

1. ‘18’ can be represented as: -


  • Convert 18 in binary and then use the given symbols.
  • And now use the symbols. So the result will be 10010= #**#*.

2. ‘24’ can be represented as: - 



  • Again convert 24 in binary and then use the given symbols.
  • And now use the symbols. So the result will be 11000= ##***.


3. #*##* can be represented as: -
  • So #*##* can be written as 10110 and then it can be converted in decimal if the question is asked in decimal. 
  • So to convert in decimal the process goes like (1*16 + 0*8 + 1*4 + 1*2 + 0*1) =22.

4. (#*** + #* ÷*#*) can be represented as: -

  • First represent this symbol in binary.
  • (1000 + 10 ÷010)
  • Now convert it in decimal.
  • [ (1*8 + 0*4 + 0 *2 + 0*1) + (1*2 + 0*1) ÷ (0*4 + 1*2 + 0*1) ] = [8 + 2 ÷ 2] = 8 + 1 = 9.
RBI Grade B Online Classes by Ramandeep Singh - Join here
notifications

Oliveboard Test Series(Recommended)


Bank Exams Today Notes

Join 40,000+ readers and get free notes in your email

Let's block ads! (Why?)



- http://www.bankexamstoday.com/2017/05/rules-and-tricks-for-binary-coding.html
Rules and Tricks For Binary Coding-Decoding 4.5 5 Yateendra sahu May 13, 2017 Introduction Binary means only 0(zero) and 1(one). Decimal means from 0(zero) to 9(nine). In binary, the base is 2. In decimal, the ...


Related Post:

  • Puzzle & Seating Arrangement For IBPS PO: Part 8
    Q. (1 – 5) Study the following information carefully to answer the given questions. In an office canteen, there is eight colleagues for tea party. That eight friends are A, B, P, Q, L, M, Y and Z are sitting in a straight bench with equal distances… Read More
  • Current Affairs Quiz: 29 June 2017
    1. With which social networking platform has The Election Commission collaborated o launch a ‘voter registration reminder’ on July 1? a. Instagram b. Facebook c. Whatsapp d. None of the above2. Who is the chairman of National Pharmaceutical Pricing… Read More
  • Extracts from the Hindu: June 29, 2017
    1993 blasts convict Mustafa Dossa dead 1993 Mumbai blasts convict Mustafa Dossa died following a cardiac arrest.  13 names picked for ICSSR Council The Centre has selected 13 names to fill the Indian Council of Social Science Research (IC… Read More
  • PM Modi's Three Nations' Tour: At a Glance
    Indian PM Mr. Narendra Modi recently visited three nations. These three nations are Portugal, the US, and the Netherlands. The tour was from 25th June to 27th June. On 25th June 2017 Mr. PM visited Portugal on 25th June and he met PM Antonio Costa… Read More
  • SSC CHSL (10+2) 2016 Examination (Tier-II) Call Letter Out
    Dear Readers, The Staff Selection Commission (SSC) has been released for Tier-II examination call letter, which is going to be held on 9th July 2017. The Commission was conducted Combined Higher Secondary Level Examination 2016 (Tier-I) in the… Read More
Load comments

No comments:

Post a Comment