CBSE Class 7 Computer Science

Number System

1 sections AI-powered notes
GET THE FULL EXPERIENCE

This is the chapter notes. Students get the interactive version.

  • Ask Aarav Sir anything — instant voice + chat doubts
  • Interactive lessons with audio narration + visual diagrams
  • Study Lab — paste any photo, PDF, or YouTube link to get it explained

Introduction to Number Systems

Introduction to Number Systems

Have you ever wondered how computers understand the numbers you type? Or why programmers sometimes talk about "binary code" and "hexadecimal values"? The secret lies in understanding number systems — different ways of representing and working with numbers.

In our everyday life, we use the decimal system without even thinking about it. When you count "1, 2, 3, 4... 10," you're using a number system that has been the foundation of mathematics for thousands of years. But computers don't "think" in decimals. They use a completely different language called binary. And to make binary easier for humans to read, programmers invented two other systems: octal and hexadecimal.

In this chapter, you'll discover that the same quantity can be written in multiple ways, just like the same idea can be expressed in different languages. The number 25 in decimal is 11001 in binary, 31 in octal, and 19 in hexadecimal — all representing the exact same value! Understanding these different systems is essential for anyone who wants to understand how computers work at a fundamental level.

{{KEY: type=concept | title=What is a Number System? | text=A number system is a systematic way of representing numbers using a specific set of symbols or digits. It defines rules for counting, arithmetic operations, and the position-based value of digits. Every number system has a base (or radix) that determines how many unique digits are used.}}


The Concept of Base (Radix)

The most important concept in understanding number systems is the base or radix. The base tells us how many unique digits are available in that system, and it determines how the position of a digit affects its value.

Think of the base as the "size of the alphabet" for numbers. In English, we have 26 letters. In number systems, the base tells us how many "letters" (digits) we can use.

Positional Value System

All the number systems we'll study use a positional notation system. This means that the position of a digit determines its value, not just the digit itself.

For example, in the decimal number 555:

  • The first 5 (from the right) means 5 × 1 = 5
  • The second 5 means 5 × 10 = 50
  • The third 5 means 5 × 100 = 500

Notice the pattern? Each position represents a power of 10 (the base). The rightmost position is 10⁰, the next is 10¹, then 10², and so on.

{{VISUAL: diagram: positional value system showing the number 555 with arrows pointing to each digit labeled with their place values (100s, 10s, 1s) and calculations}}

{{KEY: type=definition | title=Base or Radix | text=The base (or radix) of a number system is the total number of unique digits available in that system. It also represents the multiplier between consecutive positional values. For example, decimal has base 10, binary has base 2, octal has base 8, and hexadecimal has base 16.}}


The Four Number Systems

Let's explore the four number systems you'll master in this chapter:

1. Decimal Number System (Base 10)

The decimal system is the number system we use every day. It's called "decimal" because it uses 10 unique digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.

Key characteristics:

  • Base: 10
  • Digits used: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Position values: Powers of 10 (1, 10, 100, 1000, ...)
  • Common use: Everyday arithmetic, commerce, general counting

When we write a decimal number like 1347, we automatically understand it as:

  • 1 × 10³ + 3 × 10² + 4 × 10¹ + 7 × 10⁰
  • = 1 × 1000 + 3 × 100 + 4 × 10 + 7 × 1
  • = 1000 + 300 + 40 + 7 = 1347

2. Binary Number System (Base 2)

The binary system is the language of computers. It uses only 2 unique digits: 0 and 1. These are often called bits (binary digits).

Key characteristics:

  • Base: 2
  • Digits used: 0, 1 only
  • Position values: Powers of 2 (1, 2, 4, 8, 16, 32, 64, 128, ...)
  • Common use: Computer processors, digital electronics, data storage

Why do computers use binary? Because digital circuits can easily represent two states: ON (1) and OFF (0). A transistor is either conducting electricity or it isn't — there's no middle ground.

For example, the binary number 1011 means:

  • 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰
  • = 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1
  • = 8 + 0 + 2 + 1 = 11 (in decimal)

{{KEY: type=points | title=Why Binary Matters | text=- Every piece of data in a computer — numbers, text, images, videos — is ultimately stored as binary.

  • A single binary digit (bit) can store one of two values: 0 or 1.
  • 8 bits grouped together form a byte, which can represent 256 different values (0 to 255).
  • Understanding binary is essential for computer science, programming, and digital electronics.}}

3. Octal Number System (Base 8)

Stuck on something here?
Aarav Sir explains any part — voice or chat — 24/7.

The octal system uses 8 unique digits: 0, 1, 2, 3, 4, 5, 6, and 7. Notice that the digits 8 and 9 don't exist in octal!

Key characteristics:

  • Base: 8
  • Digits used: 0, 1, 2, 3, 4, 5, 6, 7
  • Position values: Powers of 8 (1, 8, 64, 512, ...)
  • Common use: Older computer systems, Unix file permissions

Octal was historically popular because it provides a shorter way to represent binary numbers. Since 8 = 2³, each octal digit perfectly represents exactly 3 binary digits.

For example, the octal number 157 means:

  • 1 × 8² + 5 × 8¹ + 7 × 8⁰
  • = 1 × 64 + 5 × 8 + 7 × 1
  • = 64 + 40 + 7 = 111 (in decimal)

4. Hexadecimal Number System (Base 16)

The hexadecimal (or just hex) system uses 16 unique digits. But we only have 10 regular digits (0-9), so we borrow six letters from the alphabet: A, B, C, D, E, and F.

Key characteristics:

  • Base: 16
  • Digits used: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
  • Letter values: A=10, B=11, C=12, D=13, E=14, F=15
  • Position values: Powers of 16 (1, 16, 256, 4096, ...)
  • Common use: Modern computing, memory addresses, color codes in web design

Hexadecimal is extremely popular in computer science because it's very compact. Since 16 = 2⁴, each hex digit represents exactly 4 binary digits. This makes hex much shorter and easier to read than long strings of binary.

For example, the hexadecimal number 2A3 means:

  • 2 × 16² + A × 16¹ + 3 × 16⁰
  • = 2 × 256 + 10 × 16 + 3 × 1
  • = 512 + 160 + 3 = 675 (in decimal)

{{VISUAL: diagram: comparison chart showing the same decimal numbers 0-16 represented in binary, octal, and hexadecimal, arranged in a four-column table}}


Comparing the Four Number Systems

Let's see how the four systems compare when representing the same quantities:

DecimalBinaryOctalHexadecimal
0000
1111
711177
81000108
10101012A
15111117F
16100002010
25511111111377FF

Notice how compact hexadecimal is compared to binary! The decimal number 255 requires eight binary digits but only two hexadecimal digits. This is why programmers prefer hex when working with large binary numbers.

{{KEY: type=exam | title=How This is Tested | text=CBSE exams often ask you to identify the base of a given number, list the valid digits in each system, or explain why computers use binary. Be ready to compare the four systems in a table format and explain the concept of positional value with examples.}}


Why Learn Multiple Number Systems?

You might wonder: "If decimal works fine, why learn three other systems?" Here's why these systems matter:

For understanding computers: Every modern device — smartphones, laptops, gaming consoles — operates using binary at the hardware level. Understanding binary helps you grasp how computers actually work.

For programming: Many programming concepts involve binary operations, bitwise calculations, and hexadecimal color codes (like #FF5733 for a reddish-orange color on websites).

For problem-solving: Converting between number systems strengthens your understanding of place value, powers, and mathematical reasoning.

For future careers: If you pursue computer science, electronics, or IT, these number systems will appear constantly in your work.

{{VISUAL: diagram: flowchart showing how data flows in a computer from user input in decimal through binary processing in the CPU to hexadecimal representation in memory addresses}}

{{ZOOM: title=Historical Note | text=The decimal system we use today originated in India around the 6th century and spread to the world through Arab mathematicians — that's why it's sometimes called the Hindu-Arabic numeral system. Binary was formalized by Gottfried Leibniz in 1679, centuries before computers existed!}}


What's Next?

Now that you understand what each number system is and why it exists, you're ready to learn the most important skill: converting numbers from one system to another.

In the next pages, you'll master techniques to:

  • Convert any decimal number to binary, octal, or hexadecimal
  • Convert binary, octal, or hexadecimal back to decimal
  • Perform quick conversions between binary, octal, and hexadecimal
  • Apply these skills to solve real-world computing problems

Remember: Different number systems are just different languages for expressing the same mathematical truths. Master the translations, and you'll unlock the logic of computing itself.

In this chapter

  • 1.Introduction to Number Systems

Frequently asked questions

What is Introduction to Number Systems?

Have you ever wondered how computers understand the numbers you type? Or why programmers sometimes talk about "binary code" and "hexadecimal values"? The secret lies in understanding **number systems** — different ways of representing and working with numbers.

Want the full CBSE Class 7 Computer Science experience?

Every chapter. Interactive lessons. AI teacher on tap. Study Lab for any photo or PDF. 3-day free trial — no credit card.

1000s of students
100% NCERT-aligned
Powered by AI

Install Learn Skill

Add to home screen for the best experience