🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Web & Software Development › Universal Core: Safety, Digital Foundations, Math & Career Readiness for Web & Software Development › Lesson 3
TEC-WEB46-01 · Lesson 3 · 30 clock hours · practice

Technical Math for Web & Software Development: Number Systems, Boolean Logic & Measurement

Objective. Students will convert values between binary, decimal, and hexadecimal, apply Boolean operators to evaluate logical expressions, and calculate common web measurements such as pixel density, file size in bytes, and network bandwidth usage.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Why Technical Math Matters in Web & Software Development

Every device, browser, and network operates on numbers — and not always the decimal numbers you use every day. Computers store data in binary, web designers write colors in hexadecimal, and developers calculate file sizes and bandwidth to make sure websites load quickly on any connection. Mastering these number systems and logical operators is a foundational skill tested on the CompTIA ITF+ and Linux+ exams and reinforced throughout the PCEP Python credential.

Number Systems

Binary (Base 2)

Computers represent all data as sequences of bits — each bit is either 0 or 1. Eight bits form one byte. Binary is a base-2 system, meaning each position represents a power of 2.

Position values for an 8-bit byte, from right to left: 128, 64, 32, 16, 8, 4, 2, 1.

To convert binary 10110011 to decimal, multiply each bit by its position value and add:

`(1×128)+(0×64)+(1×32)+(1×16)+(0×8)+(0×4)+(1×2)+(1×1) = 128+32+16+2+1 = 179`

To convert decimal 45 to binary, repeatedly divide by 2 and record remainders, then read them bottom to top: 45→22 R1, 22→11 R0, 11→5 R1, 5→2 R1, 2→1 R0, 1→0 R1 → 101101.

Hexadecimal (Base 16)

Hexadecimal (hex) uses digits 0–9 and letters A–F, where A=10 through F=15. Each hex digit represents exactly four bits, so two hex digits represent one byte. This makes hex compact and easy to read for color codes and memory addresses.

A CSS color such as #FF5733 splits into three byte pairs:

To convert hex FF to decimal: `(F×16)+(F×1) = (15×16)+(15×1) = 240+15 = 255`.

To convert hex 57: `(5×16)+(7×1) = 80+7 = 87`.

So #FF5733 = RGB(255, 87, 51).

Units of Digital Measurement

Understanding storage and transfer units prevents costly mistakes in project planning.

| Unit | Abbreviation | Approximate Size |

|------|-------------|------------------|

| Byte | B | 8 bits |

| Kilobyte | KB | 1,024 bytes |

| Megabyte | MB | 1,024 KB |

| Gigabyte | GB | 1,024 MB |

| Terabyte | TB | 1,024 GB |

Bandwidth is typically measured in bits per second (bps, Kbps, Mbps, Gbps). Note the lowercase b for bits versus uppercase B for bytes. To convert bandwidth to file-transfer time: divide the file size in bits by the connection speed in bits per second.

Pixel density (pixels per inch, PPI) affects how sharp images appear on screen. A higher PPI means more pixels in the same physical area, producing crisper text and images.

Boolean Logic

Boolean logic uses only two values — TRUE (1) and FALSE (0) — and is the foundation of every conditional statement in code. The four core operators are:

A truth table lists every combination of inputs and the resulting output for each operator.

| A | B | A AND B | A OR B | NOT A | A XOR B |

|---|---|---------|--------|-------|----------|

| 0 | 0 | 0 | 0 | 1 | 0 |

| 0 | 1 | 0 | 1 | 1 | 1 |

| 1 | 0 | 0 | 1 | 0 | 1 |

| 1 | 1 | 1 | 1 | 0 | 0 |

In JavaScript, these operators appear directly in conditional statements. For example:

```javascript

if (isLoggedIn && hasPermission) { showDashboard(); }

```

Here `&&` is AND — both conditions must be true for `showDashboard()` to run.

CSS Viewport Breakpoints

Responsive design uses breakpoints — specific pixel-width thresholds — to apply different CSS rules to different screen sizes. Common categories are:

These values are guidelines derived from common device specifications; always verify against the actual devices your project targets.

Workplace Safety Note

This lesson involves computers and printed worksheets in a classroom or lab setting. Follow your program's workstation ergonomics guidelines: position monitors at eye level, keep wrists neutral when typing, and take short breaks to reduce repetitive-strain risk. When working in a computer lab, keep pathways clear and report damaged cables or equipment to the instructor — do not attempt electrical repairs yourself. Data safety applies too: never store or transmit sensitive personal information while practicing calculations; use only sample or fictional data.

Connecting to Your Credentials

The CompTIA ITF+ exam tests number systems, Boolean logic, and units of storage. CompTIA Linux+ builds on this with binary file permissions and scripting logic. PCEP Python requires you to evaluate Boolean expressions in code. Solid math fundamentals here pay off across all three credentials and on the job.

Key terms8

BinaryA base-2 number system using only the digits 0 and 1; the native language of digital computers, where each digit is called a bit.
HexadecimalA base-16 number system using digits 0–9 and letters A–F; commonly used to represent color codes and memory addresses compactly.
ByteA unit of digital information consisting of 8 bits; the standard unit for measuring file sizes and storage capacity.
Boolean logicA branch of algebra that works with only two values — TRUE and FALSE — using operators such as AND, OR, NOT, and XOR to evaluate logical expressions.
BandwidthThe maximum rate at which data can be transferred over a network connection, measured in bits per second (bps) or multiples such as Mbps.
Pixel density (PPI)The number of pixels per inch on a display; a higher PPI produces a sharper, more detailed image.
BreakpointA specific screen-width value in CSS at which the layout changes to better fit a different device category such as mobile, tablet, or desktop.
XOR (Exclusive OR)A Boolean operator that returns TRUE only when its two inputs have different values — one TRUE and one FALSE.

Worked examples4

1. Convert the binary number 10101010 to decimal.
  1. Write out the position values for each bit from left (most significant) to right (least significant): 128, 64, 32, 16, 8, 4, 2, 1.
  2. List the bits: 1, 0, 1, 0, 1, 0, 1, 0.
  3. Multiply each bit by its position value: (1×128)+(0×64)+(1×32)+(0×16)+(1×8)+(0×4)+(1×2)+(0×1).
  4. Add the non-zero results: 128+32+8+2 = 170.
Answer: 10101010 in binary equals 170 in decimal.
2. Decode the CSS hex color #3A9FBF into its RGB decimal components.
  1. Split the six-digit hex code into three pairs: 3A (red), 9F (green), BF (blue).
  2. Convert 3A: (3×16)+(A×1) = 48+10 = 58. Red = 58.
  3. Convert 9F: (9×16)+(F×1) = 144+15 = 159. Green = 159.
  4. Convert BF: (B×16)+(F×1) = (11×16)+15 = 176+15 = 191. Blue = 191.
Answer: #3A9FBF = RGB(58, 159, 191).
3. A mobile user on a metered connection with 500 MB of data remaining loads a webpage. The page assets total 12 images at an average of 180 KB each, one CSS file of 45 KB, and one JavaScript file of 120 KB. How many megabytes does one page load consume, and how many full page loads remain in the data budget?
  1. Calculate total image data: 12 × 180 KB = 2,160 KB.
  2. Add CSS and JS: 2,160 KB + 45 KB + 120 KB = 2,325 KB total.
  3. Convert to MB: 2,325 KB ÷ 1,024 ≈ 2.27 MB per page load.
  4. Divide remaining budget by page load size: 500 MB ÷ 2.27 MB ≈ 220 full page loads.
Answer: Each page load uses approximately 2.27 MB; the user can load the page roughly 220 more times before exhausting the 500 MB budget.
4. Evaluate the Boolean expression (A AND B) OR (NOT A) for A = 1 (TRUE) and B = 0 (FALSE).
  1. Evaluate the inner expression A AND B: TRUE AND FALSE = FALSE (both must be TRUE for AND to return TRUE).
  2. Evaluate NOT A: NOT TRUE = FALSE.
  3. Evaluate the outer OR: FALSE OR FALSE = FALSE (at least one must be TRUE for OR to return TRUE).
Answer: The expression evaluates to FALSE (0).

The math in this lesson2

Learners convert binary 10101010 to decimal 170 by place value and convert among hex, binary and decimal.
F-LE.1N-Q.1
Brush up in the math halls at newSchoolWorks.com:
In class: Complete a graded worksheet set covering binary-to-decimal and decimal-to-binary conversion (up to 16-bit values), hexadecimal color codes used in CSS (e.g., #FF5733 to RGB components), and byte/kilobyte/megabyte/gigabyte unit conversion; students check answers against an answer key and correct errors with annotation. · Use a truth table template to evaluate AND, OR, NOT, and XOR expressions for inputs A and B, then connect the exercise to real code by reading a short JavaScript conditional snippet and mapping each condition to its Boolean result. · Solve a set of applied 'story problems' drawn from the trade: calculate the storage needed for a web asset folder given file counts and average sizes, estimate page-load data usage for a mobile user on a metered connection, and determine the correct CSS viewport width breakpoints for three device categories using given screen specifications.
Materials: Number systems worksheet packet (instructor-prepared), truth table template, JavaScript snippet printout, calculator, graph paper, CompTIA ITF+ Study Guide (current edition) chapters on number systems and binary
Check: Students achieve 75% or higher on the graded worksheet set; instructor reviews each story-problem solution for correct unit conversion and process shown.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Number Systems and Data Representation
1. What is the decimal equivalent of the binary number 00110101?
Number Systems and Data Representation
2. A web designer uses the CSS color code #00FF00. What are the correct RGB decimal values?
Units of Digital Storage
3. How many bytes are in 3.5 kilobytes?
Boolean Logic and Logic Gates
4. Which Boolean expression produces a TRUE result when A = FALSE and B = TRUE?
Networking and Bandwidth
5. A network connection transfers data at 25 Mbps (megabits per second). Approximately how many seconds does it take to download a 50 MB (megabyte) file?
Boolean Logic and Programming Fundamentals
6. In a JavaScript conditional `if (userAge >= 18 || hasParentalConsent)`, which situation would cause the block to execute?
Web Design and Measurement
7. A developer is setting a CSS breakpoint to target tablet devices. According to common responsive-design conventions, which pixel-width range is most appropriate for tablets?
Number Systems and Data Representation
8. Which of the following correctly converts the decimal number 200 to binary?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.