CBSE Class 11 · Computer Science 083 · Unit 1, session 2026-27

Number system for Class 11 computer science: every conversion, then Boolean logic.

Number system in Class 11 computer science is a topic of methods, so it rewards practice more than reading. There are twelve conversions between four bases, and three methods cover all of them. This page works each method once on paper-sized numbers, does the same for truth tables and circuits, and then hands you 40 questions.

Live online · 12 conversions, 3 methods · 40 questions with answers, all recomputed · one to one, at your timing

Start here

Where this topic sits in a course

Number systems come early in the Class 11 course. The other two build on the same thinking: Python, where you write the conversions as programs, and databases, where AND, OR and NOT return inside queries.

Ans. The short version

The number system topic in Class 11 computer science covers binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16), and conversion between them. To reach decimal, add digit times place value. To leave decimal, divide the whole part by the base and read remainders upwards; multiply the fraction part and read whole parts downwards. Between binary and octal or hexadecimal, group bits in threes or fours. Modern Age Coders teaches this with Boolean logic live, personalised one to one at your own timing, and a priority demo is the way to try a full class.

Q1. What are the four bases?

What is a number system? Binary, octal, decimal and hexadecimal in Class 11

A number system is a way of writing numbers with a fixed set of digits, and the count of digits is its base. The digit on the left of another is worth one more power of the base.

SystemBaseDigitsPlace values near the point
Binary20 and 18, 4, 2, 1 . 1/2, 1/4, 1/8
Octal80 to 7512, 64, 8, 1 . 1/8, 1/64
Decimal100 to 91000, 100, 10, 1 . 1/10, 1/100
Hexadecimal160 to 9, then A to F4096, 256, 16, 1 . 1/16

In hexadecimal A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15. A digit can never equal or exceed its base, so 8 is not an octal digit and 2 is not a binary one. That single rule answers most "find the invalid number" questions.

Computers use binary because a circuit has two dependable states. Octal and hexadecimal are for people: one octal digit stands for exactly three bits and one hexadecimal digit for exactly four, so a long row of bits becomes short enough to read aloud.

DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Learn this table once. The binary column counts by itself: the last bit flips on every row, the one before it on every second row, then every fourth and every eighth.

Method 1. Any base to decimal

How do you convert binary, octal or hexadecimal to decimal?

Multiply each digit by its place value and add the products. The place values are powers of the base: they start at 1 just left of the point and become fractions to its right.

Place valuesAddResult
256, 128, 64, 32, 16, 8, 4, 2, 1256 + 32 + 8 + 4 + 1(100101101)2 = (301)10
64, 8, 15 x 64 + 1 x 8 + 6 x 1 = 320 + 8 + 6(516)8 = (334)10
256, 16, 12 x 256 + 12 x 16 + 7 = 512 + 192 + 7(2C7)16 = (711)10
8, 4, 2, 1 . 0.5, 0.25, 0.1258 + 2 + 1 + 0.25 + 0.125(1011.011)2 = (11.375)10
8, 1 . 0.1257 x 8 + 3 + 2 x 0.125 = 56 + 3 + 0.25(73.2)8 = (59.25)10

Write the powers first

Put them in a row above the digits before doing any multiplication. Most wrong answers come from starting the powers at the base and not at 1.

Letters become numbers

Replace C by 12 on paper, with a bracket, before you multiply. 12 x 16 is easy; C x 16 invites a slip.

Keep the base in the answer

Write (301)10 and not just 301. A number without a base is an incomplete answer in this topic.

Method 2. Decimal to any base

How do you convert decimal to binary, octal and hexadecimal?

Divide the whole part by the new base again and again, keep the remainders, and read them from the last to the first. For the fraction part multiply by the base, keep the whole parts, and read them from the first to the last.

298 to binary, by 2

DivideQuotientRemainder
2981490
149741
74370
37181
1890
941
420
210
101

Upwards: (298)10 = (100101010)2.

298 to octal, by 8

DivideQuotientRemainder
298372
3745
404

Upwards: (298)10 = (452)8.

298 to hexadecimal, by 16

DivideQuotientRemainder
2981810, so A
1812
101

Upwards: (298)10 = (12A)16.

The fraction 0.40625, by 2

MultiplyProductWhole part
0.406250.81250
0.81251.6251
0.6251.251
0.250.50
0.51.01

Downwards: (0.40625)10 = (0.01101)2. Stop when the fraction left is 0.

By 8 it takes two steps (3.25, then 2.0) and gives (0.40625)10 = (0.32)8. By 16: 6.5, then 8.0, so (0.40625)10 = (0.68)16.

A number with both parts

Convert the two parts separately and join them at the point. For 26.375: the whole part gives (26)10 = (11010)2 by division, the fraction gives (0.375)10 = (0.011)2 by multiplication, so (26.375)10 = (11010.011)2. The same number is (32.3)8 and (1A.6)16.

When the fraction never ends

0.1 in binary begins 0.000110011001 and goes on repeating 0011 for ever. If the question does not say how many places, write four or five and put dots after them. This is also why 0.1 + 0.2 in Python is not exactly 0.3.

Check homework in Pythoninteractive mode
>>> int("2C7", 16)
711
>>> bin(298), oct(298), hex(298)
('0b100101010', '0o452', '0x12a')
>>> 0.1 + 0.2
0.30000000000000004

The prefixes 0b, 0o and 0x only name the base; leave them out of a written answer. These four functions work on whole numbers, and they are for checking: an exam answer needs the steps.

A quick sum for any answer: convert it back. Two minutes of Method 1 proves a Method 2 answer right or wrong.

Method 3. Binary, octal and hexadecimal

How do you convert between binary, octal and hexadecimal without decimal?

Group the bits: three for each octal digit, four for each hexadecimal digit. Start at the point and move outwards, adding zeros at the far ends to complete a group.

Groups of bitsResult
011 010 110 011(11010110011)2 = (3263)8
0110 1011 0011(11010110011)2 = (6B3)16
001 101 110 . 010 100(1101110.0101)2 = (156.24)8
0110 1110 . 0101(1101110.0101)2 = (6E.5)16
1110 0101 . 0110(E5.6)16 = (11100101.011)2
0100 1011 0111, then 010 010 110 111(4B7)16 = (2267)8

All twelve conversions on one card

From and toMethod
Binary, octal or hex to decimalPlace values, added (3 kinds)
Decimal to binary, octal or hexDivide and multiply by the new base (3 kinds)
Binary to octal; binary to hexGroups of 3; groups of 4
Octal to binary; hex to binary3 bits a digit; 4 bits a digit
Octal to hex; hex to octalThrough binary, then regroup

After the point the zeros go on the right, never on the left: 0101 becomes 010 100 and not 001 01. Before the point they go on the left. Getting the side wrong changes the number.

Between octal and hexadecimal, binary is the bridge: spread the digits into bits, regroup, read off. Going through decimal also works, with more arithmetic to get wrong.

Q2. What is Boolean logic?

Boolean logic for Class 11 computer science: gates, truth tables and De Morgan

Boolean logic works with two values, 0 (false) and 1 (true), and combines them with NOT, AND, OR, NAND, NOR and XOR. A truth table lists the result for every combination of inputs: two variables need 4 rows, three need 8.

GateWrittenOutput is 1 whenOutput is 0 when
NOTA'the input is 0the input is 1
ANDA . Bevery input is 1any input is 0
ORA + Bany input is 1every input is 0
NAND(A . B)'any input is 0every input is 1
NOR(A + B)'every input is 0any input is 1
XORA XOR Bthe two inputs differthe two inputs match

Order of work: brackets, then NOT, then AND, then OR. So A + B . C means A + (B . C), and A . B' means A . (B'), which is not the same as (A . B)'.

XOR built from the other three

ABA.B'A'.BA.B' + A'.BA XOR B
000000
010111
101011
110000

The last two columns agree on every row, so they are the same function.

From a sentence to a truth table

"The library door opens if the card is valid and there are no dues, or if the librarian uses the key." Let C be card valid, D be dues pending, K be key used. The door is C . D' + K.

CDKD'C.D'C.D' + K
000100
001101
010000
011001
100111
101111
110000
111001

Build one column for each step and never jump to the final one. Here the door opens in 5 rows out of 8.

De Morgan's laws, with three variables

ABC(A.B.C)'A' + B' + C'
00011
00111
01011
01111
10011
10111
11011
11100

First law: the NOT of an AND is the OR of the NOTs, (A . B)' = A' + B'. Second law: the NOT of an OR is the AND of the NOTs, (A + B)' = A' . B'. The table shows the first law holding for three variables.

In words: "not (hot and humid)" means "not hot, or not humid". To use a law, put a NOT on every part, change the sign between them, and remove the NOT from outside.

Worked: simplify (X' + Y . Z)'. It is X . (Y . Z)', and the bracket becomes Y' + Z', so the answer is X . (Y' + Z'). Two uses of the law, one line each.

Gate symbols and the two-variable proof are on the Class 11 notes page, and logic gates for beginners goes further, to a circuit that adds.

Q3. How do you read and draw a logic circuit?

Logic circuits in Class 11: from drawing to expression and back

To read a circuit, start at the inputs and write the output of each gate on its wire until you reach the end. To draw one, count the operators in the expression and place one gate for each, brackets first.

Read this one

PQRXYF

X is the NAND of P and Q, so X = (P . Q)'. Y is R'. The OR gate joins them: F = (P . Q)' + R'. By De Morgan that equals (P . Q . R)', one NAND gate with three inputs.

PQR(P.Q)'R'(P.Q)' + R'
000111
001101
010111
011101
100111
101101
110011
111000

Draw Y = (A + B') . C

ABCY

Three operators, so three gates: NOT on B, OR for the bracket, AND with C at the end. Label every input and the output, so that the drawing can be read without the question beside it.

ABCA + B'(A + B').C
00010
00111
01000
01100
10010
10111
11010
11111

Y is 1 in three rows. Test a drawing by sending one of those rows through it with a pencil.

Q4. Practice with answers

Class 11 computer science number system conversion questions, with Boolean logic: 40 in five sets

Cover the answers, write the steps, then open them. A fair pace is two minutes for a conversion and five for a truth table. Every answer has been recomputed by a program.

Set A. To decimal

  1. Convert (110101)2.
    Answer 32 + 16 + 4 + 1: (110101)2 = (53)10
  2. Convert (10011011)2.
    Answer 128 + 16 + 8 + 2 + 1: (10011011)2 = (155)10
  3. Convert (1010.01)2.
    Answer 8 + 2 + 0.25: (1010.01)2 = (10.25)10
  4. Convert (347)8.
    Answer 192 + 32 + 7: (347)8 = (231)10
  5. Convert (62.4)8.
    Answer 48 + 2 + 4/8: (62.4)8 = (50.5)10
  6. Convert (2BE)16.
    Answer 512 + 176 + 14: (2BE)16 = (702)10
  7. Convert (A9.8)16.
    Answer 160 + 9 + 8/16: (A9.8)16 = (169.5)10
  8. Which is larger, (11111111)2 or (377)8?
    Answer Neither: (11111111)2 = (377)8, and both are 255 in decimal.

Set B. From decimal

  1. (74)10 to binary.
    Answer (74)10 = (1001010)2
  2. (200)10 to binary.
    Answer (200)10 = (11001000)2
  3. (19.75)10 to binary.
    Answer (19.75)10 = (10011.11)2
  4. (0.6875)10 to binary.
    Answer (0.6875)10 = (0.1011)2
  5. (500)10 to octal.
    Answer (500)10 = (764)8
  6. (1023)10 to octal.
    Answer (1023)10 = (1777)8
  7. (2026)10 to hexadecimal.
    Answer (2026)10 = (7EA)16
  8. (44.5)10 to hexadecimal.
    Answer (44.5)10 = (2C.8)16

Set C. By grouping

  1. (11100101)2 to octal.
    Answer 011 100 101: (11100101)2 = (345)8
  2. (1101111010)2 to hexadecimal.
    Answer 0011 0111 1010: (1101111010)2 = (37A)16
  3. (7206)8 to binary.
    Answer (7206)8 = (111010000110)2
  4. (C3F)16 to binary.
    Answer (C3F)16 = (110000111111)2
  5. (10110.101)2 to octal.
    Answer 010 110 . 101: (10110.101)2 = (26.5)8
  6. (10110.101)2 to hexadecimal.
    Answer 0001 0110 . 1010: (10110.101)2 = (16.A)16
  7. (3D)16 to octal.
    Answer 111 101: (3D)16 = (75)8
  8. (527)8 to hexadecimal.
    Answer 1 0101 0111: (527)8 = (157)16

Set D. Think before you convert

  1. Which of these cannot be octal: 705, 681, 111?
    Answer 681, since 8 is not an octal digit.
  2. Which of these cannot be hexadecimal: BAD, FACE, EGG?
    Answer EGG. G would be 16, and the digits stop at F.
  3. Arrange in ascending order: (101101)2, (54)8, (2F)16, (46)10.
    Answer They are 45, 44, 47 and 46, so the order is octal, binary, decimal, hexadecimal.
  4. In (3x)16 = (60)10, what is x?
    Answer 60 - 48 = 12, so x is C.
  5. A number written 121 in some base is 81 in decimal. Which base?
    Answer 8, because 64 + 16 + 1 = 81. The largest digit, 2, allows it.
  6. What is the largest number 8 bits can hold, in three bases?
    Answer (11111111)2 = (255)10, and (255)10 = (FF)16.
  7. How many bits does a four-digit hexadecimal number need at most, and how many does a four-digit octal number need?
    Answer 16 and 12.
  8. A student wrote 0.6875 in binary as 0.1101. What went wrong?
    Answer The whole parts 1, 0, 1, 1 were read upwards. A fraction is read downwards: 0.1011.

Set E. Boolean logic and circuits

  1. Evaluate A . (B + C)' for A = 1, B = 0, C = 1.
    Answer 0. B + C is 1, its NOT is 0, and 1 . 0 is 0.
  2. Write the output column of A' + B for rows 00, 01, 10, 11.
    Answer 1, 1, 0, 1
  3. Apply De Morgan to (P' . Q)'.
    Answer P + Q'
  4. Which gate gives 1 only when both inputs are 0?
    Answer NOR
  5. Show that (A + B) . (A' + B') is XOR.
    Answer
    ABA + BA' + B'(A + B).(A' + B')
    00010
    01111
    10111
    11100

    1 only where A and B differ.

  6. A NAND gate on A and B feeds an OR gate with C. Write the output and say in how many rows it is 1.
    Answer (A . B)' + C. It is 0 only for A = 1, B = 1, C = 0, so it is 1 in 7 rows.
  7. An alarm rings if the door is open and the key is not turned, or if the panic button is pressed. With D, K and P, write it and find the value for D = 1, K = 1, P = 0.
    Answer D . K' + P. The value is 0.
  8. How many rows has a truth table of four variables, and how many gates does (A + B') . C . D' need if every gate other than NOT has two inputs?
    Answer 16 rows. Five gates: two NOT, one OR, two AND.

Marking yourself: below 30, redo the set you lost most in tomorrow, not today. Full questions in exam style are on the Class 11 sample paper.

What the 2026-27 syllabus names here: the four systems and conversion between them, the six gates, truth tables, De Morgan's laws and logic circuits, in a unit of 10 marks that also holds computer organisation, software, the operating system and encoding schemes. Binary addition, complements, K-maps and adders are not named.

Programs that use these loops are in the practical file. If you have not settled on the subject yet, compare CS and IP in Class 11: the number system belongs to CS only.

One to one, at your own timing

Learn conversions with someone watching your working

A wrong conversion usually has one wrong line in it, and a teacher who sees you write can point at that line. Classes are personalised one to one at your own days and timing. The priority demo is a paid full class at a slot you pick, with a written skill report, and what you pay is adjusted against month one on enrolling; the free demo class is there too. Billing is monthly, without an admission fee.

Before you enrol · Try a class

Priority demo, at a slot you pick

a full live class of about 45 to 60 minutes

  • Four conversions done aloud, so the weak method shows itself
  • That method retaught with a fresh number each time
  • One truth table and one circuit finished without help
  • A written report that says what to practise and in which order
Book a priority demo

The classes · Choose your own timing

Personalised one to one

₹4,999

per month, 4 private classes, fully flexible timing

  • Pace set by your accuracy, not by a chapter count
  • Working checked line by line on a shared board
  • Each method turned into a short Python program later in the year
  • School tests and the annual paper worked into the plan
Ask for a personalised plan

This topic by itself is short. Most families use it as the first weeks of a full Class 11 plan and stay for Python; some come for a few lessons before a unit test and stop at the month end, which is also fine.

Studying outside India?

Bases and logic for CBSE students abroad

Students at CBSE schools in Doha, Kathmandu or Kuala Lumpur take the same unit. Working is written on a shared board, so a tablet pen helps but paper held to the camera does the job.

Where you liveTime differenceUsual class window, local timeFormat
India
every Indian city
Indian timeAny time you choosePersonalised 1-on-1
UAE and Oman
Dubai, Abu Dhabi, Sharjah, Muscat
1 h 30 min behind India3:00 PM to 9:00 PMPersonalised 1-on-1
Saudi Arabia, Qatar, Kuwait, Bahrain
Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama
2 h 30 min behind India3:00 PM to 9:00 PMPersonalised 1-on-1
Nepal
Kathmandu
15 min ahead of India4:30 PM to 9:00 PMPersonalised 1-on-1
Ethiopia and East Africa
Addis Ababa and East Africa Time
2 h 30 min behind India4:30 PM to 9:00 PMPersonalised 1-on-1
Singapore and Malaysia
Singapore, Kuala Lumpur
2 h 30 min ahead of India3:30 PM to 9:00 PMPersonalised 1-on-1

For the year as a whole, including Python and the practical, see Class 11 Computer Science tuition for CBSE.

What families say

Rated 4.9 across 547 Google reviews

Real reviews from real families. We neither write nor commission them.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

The rest of the Class 11 series

More pages for Class 11 students

Every page in the CBSE Class 11 Computer Science, IP and AI series, grouped by what you need.

Number system questions

What students ask about number systems and Boolean logic in Class 11

What is number system in Class 11 computer science?

It is the topic in Unit 1 of CBSE 083 that covers binary, octal, decimal and hexadecimal numbers and conversion between them. A number system has a base, which is how many digits it uses, and each place is worth a power of that base.

How do I convert binary to decimal in Class 11?

Write powers of 2 above the bits, starting with 1 at the right, and add the powers that stand over a 1. For 110101 they are 32, 16, 4 and 1, so the answer is 53. Bits after the point are worth 0.5, 0.25, 0.125 and so on.

How do I convert a decimal fraction to binary?

Multiply the fraction by 2, write down the whole part of the product, and carry on with the fraction that is left. Read the whole parts from top to bottom. For 0.6875 they are 1, 0, 1, 1, so the binary is 0.1011. Stop at zero, or after the places asked for.

Why do we group three bits for octal and four for hexadecimal?

Because 8 is 2 to the power 3 and 16 is 2 to the power 4. Three bits can make exactly eight patterns, one for each octal digit, and four bits can make sixteen, one for each hexadecimal digit. Grouping starts from the point.

How do I convert octal to hexadecimal directly?

Go through binary. Write each octal digit as three bits, join them, regroup in fours from the point, and read each group as a hexadecimal digit. For 527 in octal, the bits are 101 010 111, which regroup to 1 0101 0111, so the answer is 157 in hexadecimal.

Is binary addition in the Class 11 CBSE Computer Science syllabus?

It is not named in the 2026-27 document. The syllabus lists the binary, octal, decimal and hexadecimal systems and conversion between them. Your school may teach addition as a useful extra, and it does no harm, but put conversion first.

How many marks is the number system worth in Class 11 CS?

CBSE gives marks by unit and not by topic. Unit 1, Computer Systems and Organisation, has 10 of the 70 theory marks, and it includes the number system, Boolean logic, encoding schemes, hardware, software and the operating system. The annual paper is set by your school.

What is Boolean logic in Class 11 computer science?

It is the algebra of two values, 0 and 1. The syllabus names NOT, AND, OR, NAND, NOR and XOR, truth tables, De Morgan’s laws and logic circuits. You should be able to fill a table for an expression, and turn an expression into a circuit and back.

What are De Morgan’s laws with an example?

The NOT of an AND is the OR of the NOTs, and the NOT of an OR is the AND of the NOTs. For example, not (hot and humid) is the same as not hot or not humid. You can prove either law by comparing two columns of a truth table.

Does Informatics Practices Class 11 have number systems?

The Class XI IP syllabus for 2026-27 does not name number systems or Boolean logic. Its first unit covers the computer system, memory and software. Conversions and gates belong to Computer Science (083).

Can I learn only number systems and Boolean logic one to one?

Yes. Classes are personalised, so you can begin with this topic, at your own timing, and stop at a month end or continue into Python. A priority demo, which is a full live class with a written report, is the clearest way to see how much teaching you need.

Start

Send us the conversion you get wrong

Try set C without looking at the methods. If two or more go wrong, that is a good first topic for a free demo class: you write, the teacher finds the line where it turned.

Prefer to have a full class and something on paper afterwards? The priority demo gives you a slot of your choosing and a skill report, and its cost comes off the first month if you join.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Every class is live video. The form requests a callback and reserves nothing.

We call within a few hours. No card, no enrolment fee.

Want it sooner? Book a priority demo

A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.

Book a priority demo

Keep exploring Modern Age Coders

By class and age

Learn more

Free resources

From the blog

Start here