GATE Exam  >  GATE Questions  >  Convert the 127 decimal number into binary.a)... Start Learning for Free
Convert the 127 decimal number into binary.
  • a)
    1100111
  • b)
    1111111
  • c)
    1111011
  • d)
    111111
Correct answer is option 'B'. Can you explain this answer?
Most Upvoted Answer
Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011...
Converting 127 decimal number into binary:

Step 1: Divide the decimal number by 2 and note down the quotient and remainder.

Step 2: Continue dividing the quotient by 2 until the quotient becomes 0.

Step 3: Write the remainders in reverse order to get the binary equivalent.

Using this method, we can convert the given decimal numbers into binary as follows:

Option A: 1100111
- 127 ÷ 2 = 63 remainder 1
- 63 ÷ 2 = 31 remainder 1
- 31 ÷ 2 = 15 remainder 1
- 15 ÷ 2 = 7 remainder 1
- 7 ÷ 2 = 3 remainder 1
- 3 ÷ 2 = 1 remainder 1
- 1 ÷ 2 = 0 remainder 1
- Binary equivalent = 1111111 (incorrect)

Option B: 1111111
- 127 ÷ 2 = 63 remainder 1
- 63 ÷ 2 = 31 remainder 1
- 31 ÷ 2 = 15 remainder 1
- 15 ÷ 2 = 7 remainder 1
- 7 ÷ 2 = 3 remainder 1
- 3 ÷ 2 = 1 remainder 1
- 1 ÷ 2 = 0 remainder 1
- Binary equivalent = 1111111 (correct)

Option C: 1111011
- 127 ÷ 2 = 63 remainder 1
- 63 ÷ 2 = 31 remainder 1
- 31 ÷ 2 = 15 remainder 1
- 15 ÷ 2 = 7 remainder 1
- 7 ÷ 2 = 3 remainder 1
- 3 ÷ 2 = 1 remainder 1
- 1 ÷ 2 = 0 remainder 1
- Binary equivalent = 1111111 (incorrect)

Option D: 111111
- 127 ÷ 2 = 63 remainder 1
- 63 ÷ 2 = 31 remainder 1
- 31 ÷ 2 = 15 remainder 1
- 15 ÷ 2 = 7 remainder 1
- 7 ÷ 2 = 3 remainder 1
- 3 ÷ 2 = 1 remainder 1
- Binary equivalent = 1111111 (incorrect)

Therefore, the correct answer is option B (1111111).
Free Test
Community Answer
Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011...
Concept
Divide 127 by 2. Use the integer quotient obtained in this step as the dividend for the next step. Repeat the process until the quotient becomes 0.

Write the remainder from bottom to top i.e. in the reverse chronological order.
This will give the binary equivalent of 127. 
Therefore, the binary equivalent of decimal number 127 is 1111111.
Explore Courses for GATE exam
Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer?
Question Description
Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer?.
Solutions for Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Convert the 127 decimal number into binary.a)1100111b)1111111c)1111011d)111111Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev