HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A network card has the address 00-1F-A7-3C-90-D2…
HardComputer ScienceHigh School (9–10)Computer Science › Data RepresentationNumericalConceptualIGCSE

A network card has the address 00-1F-A7-3C-90-D2…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A network card has the address 00-1F-A7-3C-90-D2. Each pair of hex digits is one byte.

  1. Write the byte A7 in binary and in denary.
  1. Write the two bytes A7-3C as one 16-bit binary number, and count its 1s.
  1. Why are addresses like this written in hexadecimal and not in binary?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Hexadecimal is base 16, with the digits 0 to 9 and A to F (10 to 15). One hex digit is one nibble of four bits, so a byte is two hex digits. Binary to hex: split into nibbles from the right and write each one as a digit. Hex to denary: the place values are 4096, 256, 16 and 1.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Given. The bytes A7 and 3C of the address.

Plan. Change each hex digit to a nibble, then use place values.

Step 1. A7 in binary. A is 10, which is 1010, and 7 is 0111. So A7 is 10100111.

Step 2. A7 in denary. 10×16+7=16710 \times 16 + 7 = 16710×16+7=167. Check with the bits: 128+32+4+2+1=167128 + 32 + 4 + 2 + 1 = 167128+32+4+2+1=167.

Step 3. A73C. 3 is 0011 and C (12) is 1100. So the 16 bits are 1010011100111100.

Step 4. Count the 1s. 1010 has 2, 0111 has 3, 0011 has 2 and 1100 has 2. That is 9 in all.

Step 5. Why hexadecimal. The full address is 48 bits long in binary but only 12 hex digits. It is shorter, so it is easier for a person to read and to copy without a mistake. Each digit still changes straight back to four bits.

Answer: (a) 10100111, which is 167. (b) 1010011100111100, with 9 ones. (c) Hex is shorter and easier for people to read and check.

Log in to save this for later
← All Problems
← A programmer is looking for a fault. One memory location holds the 16 bits 0110111110100011…A weather station adds two rainfall readings stored in 8 bits: 01001011 and 00110110… →
More onComputer Science › Data Representation

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A student must compress two files. File A is a text file holding the 7 characters ABCDEFG, one byte…Hard
  2. A line of an icon is stored with run-length encoding as these pairs of (count, colour code): (5…Medium
  3. One row of a scanned page is 13 pixels: 6 white, then 3 black, then 4 white…Easy
  4. An image is 800 pixels wide and 600 pixels high…Hard
  5. A camera takes photos of 2048 by 1536 pixels with a colour depth of 24 bits…Medium
All problems on this topic →