• Foundation
  • About 16 min
  • 5 practice questions

Software and number systems: system and application software, binary and hexadecimal

Tell hardware from software and system software from application software, name the language translators, and convert small numbers between binary, decimal and hexadecimal.

If something looks wrong, please tell us.

Hardware is only a box of parts until software tells it what to do. In this lesson you will learn how software is grouped, and then how the computer stores everything, from marks to music, as numbers made of 0s and 1s.

Hardware, software and firmware

TermMeaningExamples
HardwareThe physical parts of a computer that you can touchMonitor, keyboard, CPU chip, hard disk
SoftwarePrograms: sets of instructions that tell the hardware what to do; you cannot touch themOperating system, word processor, games
FirmwareSoftware stored permanently on a hardware chipThe start-up program (BIOS or UEFI) in a ROM or flash chip

System software and application software

System software runs and manages the computer itself and gives other programs a platform to run on. Application software helps the user do a particular task.

Kinds of software

  • System software Runs and manages the computer.
    • Operating systems
    • Device drivers
    • Utility programs
    • Language translators
  • Application software Helps the user do a task.
    • Word processors
    • Spreadsheets and presentations
    • Browsers, email, media players
    • Accounting packages and games
System softwareApplication software
Operating systems: Windows, Linux, macOS, AndroidWord processors: LibreOffice Writer, Microsoft Word
Device drivers: let the operating system work with a printer or a graphics cardSpreadsheets and presentation programs
Utility programs: antivirus, backup, disk clean-up, file compressionWeb browsers, email programs, media players
Language translators: compilers, interpreters, assemblersAccounting packages, games, a railway reservation program made for one organisation

Application software may be general purpose (a spreadsheet anyone can use) or tailor-made (written for one organisation's needs).

Programming languages and translators

A computer directly understands only machine language, written in 0s and 1s. Assembly language uses short words such as ADD and MOV, and high-level languages such as C, Java and Python use words close to English. Translators convert programs into machine language:

Language translators

  • Compiler
    • Translates a high-level program
    • The whole program at once, then it runs
  • Interpreter
    • Translates a high-level program
    • One line at a time, translating and running
  • Assembler
    • Translates assembly language
    • Into machine language
  • Compiler: translates the whole high-level program at once into machine code, then it runs.
  • Interpreter: translates and runs a high-level program one line at a time.
  • Assembler: translates assembly language into machine language.

Worked example 1: classify the software

Classify: an antivirus, a printer driver, a spreadsheet and a Python interpreter. The antivirus is a utility program, which is system software. The printer driver helps the operating system talk to the printer: system software. The spreadsheet helps the user do a task: application software. The Python interpreter is a language translator, grouped with system software.

Number systems

Electronic circuits have two states, off and on, so computers store everything in binary, using only 0 and 1. Other number systems are used as short ways of writing binary.

Number systemBaseDigits used
Binary20 and 1
Octal80 to 7
Decimal100 to 9
Hexadecimal160 to 9 and A to F (A = 10, B = 11, C = 12, D = 13, E = 14, F = 15)

Binary to decimal: write the place values 1, 2, 4, 8, 16, 32 ... from the right, and add the place values where the digit is 1. Decimal to binary: divide by 2 again and again, note each remainder, and read the remainders from the last to the first.

Worked example 2: conversions

  • Binary 1101 to decimal: place values from the left are 8, 4, 2, 1. Add those under a 1: 8 + 4 + 0 + 1 = 13.
  • Decimal 25 to binary: 25 ÷ 2 = 12 remainder 1; 12 ÷ 2 = 6 remainder 0; 6 ÷ 2 = 3 remainder 0; 3 ÷ 2 = 1 remainder 1; 1 ÷ 2 = 0 remainder 1. Reading the remainders from the last to the first gives 11001. Check: 16 + 8 + 1 = 25.
  • Hexadecimal FF to decimal: F = 15, so 15 × 16 + 15 = 240 + 15 = 255.
  • One hexadecimal digit stands for exactly 4 bits and one octal digit for exactly 3 bits, which is why they are handy short forms of binary.

With n bits you can make 2 to the power n different patterns. One byte (8 bits) gives 2 to the power 8 = 256 patterns, so it can hold the numbers 0 to 255. Letters are stored as numbers too: in the ASCII code, capital A is 65. Unicode extends the idea to almost every script in the world, including Devanagari.

System software runs the computer; application software does the user's task. Binary = base 2, octal = base 8, decimal = base 10, hexadecimal = base 16. n bits give 2 to the power n values: 8 bits give 256.

Key takeaways: operating systems, drivers, utilities and translators are system software; word processors, browsers and games are application software. A compiler translates all at once, an interpreter line by line. Convert binary to decimal with place values and decimal to binary by repeated division by 2.

Check your understanding

  1. 1. A printer driver is an example of:

    1. Application software
    2. System software
    3. An input device
    4. A programming language
    Show answer

    Answer: B. A device driver lets the operating system control a piece of hardware, so it is system software. It is not a task program for the user, not a physical device and not a language.

  2. 2. Which translator converts a whole high-level program into machine code at one time?

    1. Interpreter
    2. Assembler
    3. Compiler
    4. Device driver
    Show answer

    Answer: C. A compiler translates the complete program at once. An interpreter works line by line, an assembler translates assembly language, and a device driver is not a translator at all.

  3. 3. What is the binary number 1010 in decimal?

    1. 12
    2. 5
    3. 8
    4. 10
    Show answer

    Answer: D. Place values from the left are 8, 4, 2, 1. The digits 1, 0, 1, 0 give 8 + 0 + 2 + 0 = 10.

  4. 4. What is the decimal number 25 in binary?

    1. 11001
    2. 10011
    3. 11010
    4. 10101
    Show answer

    Answer: A. Divide by 2 repeatedly: remainders 1, 0, 0, 1, 1; read from the last to the first to get 11001. Check: 16 + 8 + 0 + 0 + 1 = 25.

  5. 5. How many different values can be represented with 8 bits?

    1. 8
    2. 16
    3. 255
    4. 256
    Show answer

    Answer: D. n bits give 2 to the power n patterns, and 2 to the power 8 is 256. The largest number they can hold is 255, because counting starts at 0, so there are 256 values from 0 to 255.

Privacy · Terms · Refunds · Delivery