Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
Computer ScienceHigh school2 topic explainers

Computer Science Principles course

Broad introduction to how computers and networks work.

Topics in this course

  1. 1.Binary and Data

    Computers store everything, from numbers to photos to this sentence, as patterns of bits, each 0 or 1. Binary is base 2: each place is worth a power of two, so 10112=8+0+2+1=111011_2 = 8 + 0 + 2 + 1 = 11. Eight bits make a byte, which can hold 28=2562^8 = 256 different values.

    • nn bits can represent 2n2^n distinct values.
    • Convert decimal to binary by repeatedly dividing by 2 and reading remainders upward.
    • Hex digits: 0-9 then A-F for 10-15; FF16=255\text{FF}_{16} = 255.
    Quick check: Convert 11010211010_2 to decimal.

    2626

    Includes a worked example, 3 common mistakes and 3 practice questions with answers. Study binary and data

  2. 2.The Internet

    The internet is a network of networks that moves data in small chunks called packets. Each packet carries part of the message plus addressing information, and routers forward packets hop by hop toward their destination. Packets from one message may take different routes and arrive out of order; the receiving computer reassembles them.

    • IPv4 addresses are 32 bits (≈4.3\approx 4.3 billion); IPv6 uses 128 bits.
    • DNS translates names like example.com into IP addresses.
    • Bandwidth is how much data per second a link carries; latency is the delay.
    Quick check: How many addresses does a 32-bit address space hold?

    232=42949672962^{32} = 4294967296

    Includes a worked example, 3 common mistakes and 3 practice questions with answers. Study the internet

Also part of this course

These topics belong to the course outline. Full explainers for them have not been written yet, so they are summarised here rather than given pages of their own.

Impact of Computing
Privacy, bias and the digital divide.

Where to go next