★★★★★
"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
CBSE Class 11 · Computer Science 083 · Unit 1, session 2026-27
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
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.

Unit 1 and after
Two years of the subject, joinable in any month. The CBSE track takes this unit and then moves into Python.
Open the course →
Loops and remainders
The division method is a while loop with % and //. Learn to program and the method checks itself.
Open the course →
Logic in use
A WHERE clause with AND, OR and NOT is a Boolean expression tested on every row of a table.
Open the course →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?
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.
| System | Base | Digits | Place values near the point |
|---|---|---|---|
| Binary | 2 | 0 and 1 | 8, 4, 2, 1 . 1/2, 1/4, 1/8 |
| Octal | 8 | 0 to 7 | 512, 64, 8, 1 . 1/8, 1/64 |
| Decimal | 10 | 0 to 9 | 1000, 100, 10, 1 . 1/10, 1/100 |
| Hexadecimal | 16 | 0 to 9, then A to F | 4096, 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.
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
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
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 values | Add | Result |
|---|---|---|
| 256, 128, 64, 32, 16, 8, 4, 2, 1 | 256 + 32 + 8 + 4 + 1 | (100101101)2 = (301)10 |
| 64, 8, 1 | 5 x 64 + 1 x 8 + 6 x 1 = 320 + 8 + 6 | (516)8 = (334)10 |
| 256, 16, 1 | 2 x 256 + 12 x 16 + 7 = 512 + 192 + 7 | (2C7)16 = (711)10 |
| 8, 4, 2, 1 . 0.5, 0.25, 0.125 | 8 + 2 + 1 + 0.25 + 0.125 | (1011.011)2 = (11.375)10 |
| 8, 1 . 0.125 | 7 x 8 + 3 + 2 x 0.125 = 56 + 3 + 0.25 | (73.2)8 = (59.25)10 |
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.
Replace C by 12 on paper, with a bracket, before you multiply. 12 x 16 is easy; C x 16 invites a slip.
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
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.
| Divide | Quotient | Remainder |
|---|---|---|
| 298 | 149 | 0 |
| 149 | 74 | 1 |
| 74 | 37 | 0 |
| 37 | 18 | 1 |
| 18 | 9 | 0 |
| 9 | 4 | 1 |
| 4 | 2 | 0 |
| 2 | 1 | 0 |
| 1 | 0 | 1 |
Upwards: (298)10 = (100101010)2.
| Divide | Quotient | Remainder |
|---|---|---|
| 298 | 37 | 2 |
| 37 | 4 | 5 |
| 4 | 0 | 4 |
Upwards: (298)10 = (452)8.
| Divide | Quotient | Remainder |
|---|---|---|
| 298 | 18 | 10, so A |
| 18 | 1 | 2 |
| 1 | 0 | 1 |
Upwards: (298)10 = (12A)16.
| Multiply | Product | Whole part |
|---|---|---|
| 0.40625 | 0.8125 | 0 |
| 0.8125 | 1.625 | 1 |
| 0.625 | 1.25 | 1 |
| 0.25 | 0.5 | 0 |
| 0.5 | 1.0 | 1 |
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.
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.
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.
>>> int("2C7", 16)
711
>>> bin(298), oct(298), hex(298)
('0b100101010', '0o452', '0x12a')
>>> 0.1 + 0.2
0.30000000000000004The 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
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 bits | Result |
|---|---|
| 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 |
| From and to | Method |
|---|---|
| Binary, octal or hex to decimal | Place values, added (3 kinds) |
| Decimal to binary, octal or hex | Divide and multiply by the new base (3 kinds) |
| Binary to octal; binary to hex | Groups of 3; groups of 4 |
| Octal to binary; hex to binary | 3 bits a digit; 4 bits a digit |
| Octal to hex; hex to octal | Through 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 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.
| Gate | Written | Output is 1 when | Output is 0 when |
|---|---|---|---|
| NOT | A' | the input is 0 | the input is 1 |
| AND | A . B | every input is 1 | any input is 0 |
| OR | A + B | any input is 1 | every input is 0 |
| NAND | (A . B)' | any input is 0 | every input is 1 |
| NOR | (A + B)' | every input is 0 | any input is 1 |
| XOR | A XOR B | the two inputs differ | the 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)'.
| A | B | A.B' | A'.B | A.B' + A'.B | A XOR B |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 |
The last two columns agree on every row, so they are the same function.
"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.
| C | D | K | D' | C.D' | C.D' + K |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 |
Build one column for each step and never jump to the final one. Here the door opens in 5 rows out of 8.
| A | B | C | (A.B.C)' | A' + B' + C' |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 |
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?
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.
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.
| P | Q | R | (P.Q)' | R' | (P.Q)' + R' |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 |
| 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 |
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.
| A | B | C | A + B' | (A + B').C |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 1 |
Y is 1 in three rows. Test a drawing by sending one of those rows through it with a pencil.
Q4. Practice with answers
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.
| A | B | A + B | A' + B' | (A + B).(A' + B') |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 |
1 only where A and B differ.
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
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
a full live class of about 45 to 60 minutes
The classes · Choose your own timing
₹4,999
per month, 4 private classes, fully flexible timingtwo private classes a week, at a time set with you
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?
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 live | Time difference | Usual class window, local time | Format |
|---|---|---|---|
| India every Indian city | Indian time | Any time you choose | Personalised 1-on-1 |
| UAE and Oman Dubai, Abu Dhabi, Sharjah, Muscat | 1 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Saudi Arabia, Qatar, Kuwait, Bahrain Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama | 2 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Nepal Kathmandu | 15 min ahead of India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Ethiopia and East Africa Addis Ababa and East Africa Time | 2 h 30 min behind India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Singapore and Malaysia Singapore, Kuala Lumpur | 2 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 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
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
Every page in the CBSE Class 11 Computer Science, IP and AI series, grouped by what you need.
CBSE Class 12 Computer Science (083): Class 12 CS viva questions Class 12 CS sample paper practice Class 12 CS project with source code Class 12 CS important questions
CBSE Class 12 Informatics Practices (065): Class 12 IP practical file Class 12 IP project with source code Class 12 IP sample paper practice Class 12 IP important questions
CBSE Class 12 Information Technology (802): IT 802 practical and project file IT 802 Java notes and programs IT 802 notes
ISC Computer Science (868): ISC Class 12 CS syllabus 2027 ISC Class 12 CS practice paper ISC Class 12 practical questions solved ISC Boolean algebra and K-maps
Program lists with output: Python programs for Class 11 Python project ideas
Number system questions
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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
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.
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