WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M1-5 ยท 5 of 11 in Algebra ยท 12 min read

Binary numbers

12 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. Binary numbers gave 3 questions in the 7 papers from NDA II 2023 to NDA II 2026: one each in NDA I 2025, NDA II 2025 and NDA II 2026. In all three the method was the same. Change the binary numbers to ordinary (decimal) numbers, do the arithmetic, and change the answer back to binary. This is a short chapter with two skills, and when a question comes it is a sure mark. All three real questions are solved in section 7.

What you will be able to do

  • Change a binary number to decimal, and a decimal number to binary.
  • Do the same for numbers with a fractional part.
  • Add two binary numbers in columns.
  • Answer an exam question on binary numbers by the route "to decimal, calculate, back to binary".

Before you start you should know: the powers of 2, division with a remainder (Chapter M1-3), and how to find an LCM.

1. Two ways to write a number

Our usual system is the decimal system. It has ten digits, 0 to 9, and each place is worth ten times the place on its right: โ€‹345 = 3 \times 100 + 4 \times 10 + 5 \times 1โ€‹.

The binary system has only two digits, 0 and 1. Each place is worth two times the place on its right. From the right, the places are worth โ€‹1, 2, 4, 8, 16, \dotsโ€‹, the powers of 2. A binary digit is called a bit.

To show which system is used, we write the base below the number: โ€‹(1101)_2โ€‹ is binary and โ€‹(13)_{10}โ€‹ is decimal.

Learn the powers of 2 up to โ€‹2^{10}โ€‹:

โ€‹2^0โ€‹ โ€‹2^1โ€‹ โ€‹2^2โ€‹ โ€‹2^3โ€‹ โ€‹2^4โ€‹ โ€‹2^5โ€‹ โ€‹2^6โ€‹ โ€‹2^7โ€‹ โ€‹2^8โ€‹ โ€‹2^9โ€‹ โ€‹2^{10}โ€‹
1 2 4 8 16 32 64 128 256 512 1024

2. Binary to decimal

Write the place value above each digit. Add the place values that have a 1 under them.

For โ€‹(1101)_2โ€‹ the place values are 8, 4, 2, 1. So โ€‹(1101)_2 = 8 + 4 + 0 + 1 = 13โ€‹.

3. Decimal to binary

Divide the number by 2 again and again, writing the remainder each time, until the quotient is 0. Then read the remainders from the last to the first.

For 25: โ€‹25 \div 2 = 12โ€‹ remainder 1; โ€‹12 \div 2 = 6โ€‹ remainder 0; โ€‹6 \div 2 = 3โ€‹ remainder 0; โ€‹3 \div 2 = 1โ€‹ remainder 1; โ€‹1 \div 2 = 0โ€‹ remainder 1. Reading from the last remainder to the first: โ€‹25 = (11001)_2โ€‹.

Repeated division of 25 by 2 with the remainders 1, 0, 0, 1, 1 read from the last to the first, giving 11001

Check: โ€‹16 + 8 + 0 + 0 + 1 = 25โ€‹.

A second way is to take out the largest power of 2 each time: โ€‹25 = 16 + 8 + 1โ€‹, so there is a 1 in the places 16, 8 and 1, and a 0 in the places 4 and 2. This is quick when you know the powers of 2.

4. Numbers with a fractional part

After the binary point, the places are worth โ€‹\frac{1}{2}, \frac{1}{4}, \frac{1}{8}, \dotsโ€‹

Binary to decimal. โ€‹(0.101)_2 = \frac{1}{2} + 0 + \frac{1}{8} = 0.625โ€‹.

Decimal to binary. Multiply the fraction by 2 again and again. Each time, write down the whole-number part (0 or 1) and carry on with the fraction part. Read the digits from the first to the last.

For 0.625: โ€‹0.625 \times 2 = 1.25โ€‹, digit 1; โ€‹0.25 \times 2 = 0.5โ€‹, digit 0; โ€‹0.5 \times 2 = 1.0โ€‹, digit 1. So โ€‹0.625 = (0.101)_2โ€‹.

For a number such as 13.375, change the whole part and the fractional part separately.

5. Arithmetic with binary numbers

Addition goes column by column from the right, as in decimal, with these rules:

Sum in a column Write Carry
โ€‹0 + 0โ€‹ 0 0
โ€‹0 + 1โ€‹ 1 0
โ€‹1 + 1โ€‹ 0 1
โ€‹1 + 1 + 1โ€‹ 1 1

The last two rows say that โ€‹1 + 1 = (10)_2โ€‹ and โ€‹1 + 1 + 1 = (11)_2โ€‹.

The safe route in the exam. For any sum, difference, product, HCF or LCM of binary numbers: change each number to decimal, calculate, and change the answer back. All three real questions in section 7 are done this way.

Four facts that save time:

  • โ€‹(111\ldots1)_2โ€‹ with โ€‹nโ€‹ ones is โ€‹2^n - 1โ€‹. So โ€‹(1111)_2 = 15โ€‹.
  • 1 followed by โ€‹nโ€‹ zeros is โ€‹2^nโ€‹. So โ€‹(10000)_2 = 16โ€‹.
  • Writing a 0 at the right end doubles the number: โ€‹(1011)_2 = 11โ€‹ and โ€‹(10110)_2 = 22โ€‹.
  • A binary number is even when its last digit is 0, and odd when it is 1.

6. Worked examples

Example 1. Change โ€‹(110101)_2โ€‹ to decimal.

Place value 32 16 8 4 2 1
Digit 1 1 0 1 0 1

โ€‹(110101)_2 = 32 + 16 + 4 + 1 = 53โ€‹.

Place values 32, 16, 8, 4, 2, 1 written above the digits 1, 1, 0, 1, 0, 1; the places with a 1 add up to 53

Example 2. Change 77 to binary.

Division Quotient Remainder
โ€‹77 \div 2โ€‹ 38 1
โ€‹38 \div 2โ€‹ 19 0
โ€‹19 \div 2โ€‹ 9 1
โ€‹9 \div 2โ€‹ 4 1
โ€‹4 \div 2โ€‹ 2 0
โ€‹2 \div 2โ€‹ 1 0
โ€‹1 \div 2โ€‹ 0 1

Read the remainders from the bottom to the top: โ€‹77 = (1001101)_2โ€‹. Check: โ€‹64 + 8 + 4 + 1 = 77โ€‹.

Example 3. Change 13.375 to binary.

Whole part: โ€‹13 = 8 + 4 + 1 = (1101)_2โ€‹. Fractional part: โ€‹0.375 \times 2 = 0.75โ€‹, digit 0; โ€‹0.75 \times 2 = 1.5โ€‹, digit 1; โ€‹0.5 \times 2 = 1.0โ€‹, digit 1. So โ€‹0.375 = (0.011)_2โ€‹ and โ€‹13.375 = (1101.011)_2โ€‹.

Example 4. Add โ€‹(11011)_2โ€‹ and โ€‹(1110)_2โ€‹.

\begin{array}{r} 11011 \\ +\ \ 1110 \\ \hline 101001 \end{array}

From the right: โ€‹1 + 0 = 1โ€‹. Then โ€‹1 + 1 = 10โ€‹: write 0, carry 1. Then โ€‹0 + 1 + 1 = 10โ€‹: write 0, carry 1. Then โ€‹1 + 1 + 1 = 11โ€‹: write 1, carry 1. Then โ€‹1 + 1 = 10โ€‹: write 0, carry 1. Write the last carry. The sum is โ€‹(101001)_2โ€‹.

Column addition of 11011 and 1110 in binary with the carries written above, giving 101001; in decimal 27 + 14 = 41

Check in decimal: โ€‹27 + 14 = 41โ€‹, and โ€‹(101001)_2 = 32 + 8 + 1 = 41โ€‹.

Example 5. Find the product of โ€‹(1101)_2โ€‹ and โ€‹(101)_2โ€‹.

โ€‹(1101)_2 = 13โ€‹ and โ€‹(101)_2 = 5โ€‹. The product is โ€‹65 = 64 + 1 = (1000001)_2โ€‹.

7. From the real papers

Try each question for two minutes before you read the solution. The exam's average is 75 seconds a question, but the conversions here take a little longer.

NDA II 2025, Q41. What is the sum of the binary numbers โ€‹(101101101)_2โ€‹ and โ€‹(100011)_2โ€‹?

(a) โ€‹(110010000)_2โ€‹โ€ƒโ€ƒ(b) โ€‹(110001000)_2โ€‹โ€ƒโ€ƒ(c) โ€‹(110000100)_2โ€‹โ€ƒโ€ƒ(d) โ€‹(100100000)_2โ€‹

Solution. โ€‹(101101101)_2 = 256 + 64 + 32 + 8 + 4 + 1 = 365โ€‹ and โ€‹(100011)_2 = 32 + 2 + 1 = 35โ€‹. The sum is 400. Now โ€‹400 = 256 + 128 + 16โ€‹, which is โ€‹(110010000)_2โ€‹. Answer (a).

NDA II 2026, Q41. What is the LCM of โ€‹(11110)_2โ€‹, โ€‹(10100)_2โ€‹ and โ€‹(11011)_2โ€‹?

(a) โ€‹(1000001100)_2โ€‹โ€ƒโ€ƒ(b) โ€‹(1000011100)_2โ€‹โ€ƒโ€ƒ(c) โ€‹(1000111100)_2โ€‹โ€ƒโ€ƒ(d) โ€‹(1000011101)_2โ€‹

Solution. โ€‹(11110)_2 = 30โ€‹, โ€‹(10100)_2 = 20โ€‹ and โ€‹(11011)_2 = 27โ€‹. In prime factors: โ€‹30 = 2 \times 3 \times 5โ€‹, โ€‹20 = 2^2 \times 5โ€‹, โ€‹27 = 3^3โ€‹. LCM โ€‹= 2^2 \times 3^3 \times 5 = 540โ€‹. Now โ€‹540 = 512 + 16 + 8 + 4โ€‹, which is โ€‹(1000011100)_2โ€‹. Answer (b).

NDA I 2025, Q7. If โ€‹x = (1111)_2โ€‹, โ€‹y = (1001)_2โ€‹ and โ€‹z = (110)_2โ€‹, then what is โ€‹x^3 - y^3 - z^3 - 3xyzโ€‹ equal to?

(a) โ€‹(111001)_2โ€‹โ€ƒโ€ƒ(b) โ€‹(100111)_2โ€‹โ€ƒโ€ƒ(c) โ€‹(1)_2โ€‹โ€ƒโ€ƒ(d) โ€‹(0)_2โ€‹

Solution. โ€‹x = 15โ€‹, โ€‹y = 9โ€‹, โ€‹z = 6โ€‹. Then โ€‹x^3 - y^3 - z^3 - 3xyz = 3375 - 729 - 216 - 2430 = 0โ€‹, which is โ€‹(0)_2โ€‹. A shorter way: โ€‹x = y + zโ€‹, so โ€‹x + (-y) + (-z) = 0โ€‹. When three numbers add up to zero, the sum of their cubes is three times their product. That gives โ€‹x^3 - y^3 - z^3 = 3xyzโ€‹ at once. Answer (d).

Practice questions in the exam style

Only three real questions have been captured for this chapter. The three below are our own questions, not from a real paper.

Practice 1. What is the binary form of the decimal number 0.6875?

(a) โ€‹(0.1011)_2โ€‹โ€ƒโ€ƒ(b) โ€‹(0.1101)_2โ€‹โ€ƒโ€ƒ(c) โ€‹(0.1001)_2โ€‹โ€ƒโ€ƒ(d) โ€‹(0.1110)_2โ€‹

Solution. โ€‹0.6875 \times 2 = 1.375โ€‹, digit 1; โ€‹0.375 \times 2 = 0.75โ€‹, digit 0; โ€‹0.75 \times 2 = 1.5โ€‹, digit 1; โ€‹0.5 \times 2 = 1.0โ€‹, digit 1. So โ€‹0.6875 = (0.1011)_2โ€‹. Check: โ€‹\frac{1}{2} + \frac{1}{8} + \frac{1}{16} = 0.6875โ€‹. Answer (a).

Practice 2. What is the product of โ€‹(11011)_2โ€‹ and โ€‹(101)_2โ€‹?

(a) โ€‹(1000111)_2โ€‹โ€ƒโ€ƒ(b) โ€‹(10001011)_2โ€‹โ€ƒโ€ƒ(c) โ€‹(10000111)_2โ€‹โ€ƒโ€ƒ(d) โ€‹(10010111)_2โ€‹

Solution. โ€‹(11011)_2 = 27โ€‹ and โ€‹(101)_2 = 5โ€‹. The product is โ€‹135 = 128 + 4 + 2 + 1โ€‹, which is โ€‹(10000111)_2โ€‹. Answer (c).

Practice 3. What is โ€‹(110010)_2 - (10111)_2โ€‹ equal to?

(a) โ€‹(11001)_2โ€‹โ€ƒโ€ƒ(b) โ€‹(11011)_2โ€‹โ€ƒโ€ƒ(c) โ€‹(11101)_2โ€‹โ€ƒโ€ƒ(d) โ€‹(10111)_2โ€‹

Solution. โ€‹(110010)_2 = 50โ€‹ and โ€‹(10111)_2 = 23โ€‹. The difference is โ€‹27 = 16 + 8 + 2 + 1โ€‹, which is โ€‹(11011)_2โ€‹. Answer (b).

8. Mistakes that cost marks

  1. Reading the remainders in the wrong order. For 25 the remainders come out as 1, 0, 0, 1, 1. Read from the last to the first: โ€‹(11001)_2โ€‹. Reading from the first gives โ€‹(10011)_2โ€‹, which is 19.
  2. Leaving out the place of a 0. In โ€‹(1001)_2โ€‹ the places are 8, 4, 2, 1, so the number is โ€‹8 + 1 = 9โ€‹. Write the place values above every digit before adding.
  3. Reading the places after the point as tenths. โ€‹(0.1)_2โ€‹ is โ€‹\frac{1}{2} = 0.5โ€‹, not 0.1. And โ€‹(0.11)_2 = \frac{1}{2} + \frac{1}{4} = 0.75โ€‹.
  4. Writing 2 in a column. There is no digit 2 in binary. โ€‹1 + 1โ€‹ is โ€‹(10)_2โ€‹: write 0 and carry 1.

9. Quick check

Do these without help. Answers are at the end.

  1. Change โ€‹(10110)_2โ€‹ to decimal.
  2. Change 37 to binary.
  3. Change โ€‹(11.01)_2โ€‹ to decimal.
  4. Add โ€‹(1011)_2โ€‹ and โ€‹(111)_2โ€‹. Give the answer in binary.
  5. Change 0.25 to binary.

10. Read and watch more, free

The mathematics textbooks of NCERT and NIOS do not teach binary numbers. The one official school text is in the computer science book, and it is in English only.

What Where Language
Textbook NCERT Class 11 Computer Science, Chapter 2 Encoding Schemes and Number System (sections 2.2 and 2.3; leave out the parts on octal and hexadecimal numbers, which NDA does not ask) English
Short lesson with notes Khan Academy: The binary number system English
Video, the two conversions Neso Academy: Decimal to Binary and Binary to Decimal Conversion (16 minutes) English
Video, the chapter for NDA Centurion Digital: Binary Number System, Complete Concept, NDA 1 2026 (56 minutes) Hinglish
Video, past NDA questions solved Chandigarh Career Group: NDA mathematics PYQ (the three videos on binary numbers) Hinglish (judged from the titles)

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹16 + 4 + 2 = 22โ€‹.
  2. โ€‹37 = 32 + 4 + 1 = (100101)_2โ€‹.
  3. โ€‹2 + 1 + \frac{1}{4} = 3.25โ€‹.
  4. โ€‹11 + 7 = 18 = 16 + 2 = (10010)_2โ€‹.
  5. โ€‹0.25 = \frac{1}{4} = (0.01)_2โ€‹.

Next chapter: Progressions: AP, GP and HP.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    What is the HCF of the binary numbers โ€‹(110000)_2โ€‹ and โ€‹(10100)_2โ€‹?
  2. Question 2 of 3
    What is the LCM of the binary numbers โ€‹(100)_2โ€‹ and โ€‹(110)_2โ€‹?
  3. Question 3 of 3
    What is the product of โ€‹(1011)_2โ€‹ and โ€‹(110)_2โ€‹?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.