←
Class 11 Computer Science
1. Computer System · 1 / 11
⌕
Chapter 1 of 11

1. Computer System

11 sections · 6,611 words

About this chapter

197 words · 1 min read

Big idea: A computer takes in data, follows instructions, and gives out useful results.

This is an original lesson that follows the Class 11 Computer Science syllabus. Read the key words first. Cover a worked answer and try the steps yourself before you look. For a program, say what it will print before you read the real output.

  • Name the parts of a computer system and what each part does.
  • Tell RAM, ROM, cache and secondary storage apart.
  • Explain how data moves between the CPU and memory.
  • Read microprocessor words like word size, clock speed and core.
  • Sort data into structured, unstructured and semi-structured.
  • Sort software into system software, programming tools and applications.

People built calculating tools for centuries. Electronic computers arrived in the 1940s and filled rooms. John von Neumann described storing the program and the data in one memory. That design is still the usual exam model. In the 1970s, whole processors began to fit on single chips. Gordon Moore noticed transistor counts doubling about every two years. Personal computers, graphical screens, the web, phones, and smart devices followed. Each step put more computing into smaller boxes.

1.1 Introduction to computer systems

843 words · 4 min read

A computer follows instructions. It turns data into results.

A computer is an electronic machine you can program.

It accepts data. It works on that data. It then shows results.

Input is data going in. Processing is the work. Output is the result coming out.

A computer system is the computer plus its hardware and software.

Hardware is the parts you can touch. Software is the instructions.

A phone is a computer system. A laptop is one too. A large server is one as well.

Input: data enters the machineProcessing: the CPU follows instructionsOutput: results are shownStorage: files are kept for later
Four steps of a computer job. Input, process, output, then store.

How to read the figure. Start at the top. Data enters. The CPU then works. Results leave. Storage keeps a copy. Skip storage and a restart wipes the work in RAM.

Input devicesRAMCPUALU: mathsCU: ordersRegistersStorageOutput devices
Parts of a computer system. Arrows show how data moves.

How to read the figure. Input is the top box. The CPU is the centre. RAM is on the left. Storage is on the right. Output is the bottom box. Arrows show the path.

The CPU does the work. The screen only shows the result.

This four-step plan is why every exam diagram looks similar. Name input, process, output, and storage.

The CPU does the processing. People call it the processor. It is also called the brain of the computer.

The CPU is built on tiny chips. Those chips are integrated circuits.

It fetches instructions from memory. It follows them. It stores the answer back.

CPU chipALUControl unitRegisters: tiny fast notes
Inside the CPU. Three parts share one chip.

How to read the figure. The left box is the ALU. The right box is the control unit. The bottom strip holds registers. All three sit on one chip.

The ALU is the Arithmetic Logic Unit. It adds. It subtracts. It compares values.

The CU is the Control Unit. It fetches instructions. It tells other parts what to do.

Registers are tiny stores inside the CPU. They hold the values in use right now. They are few and very fast.

CPU partWhat it does
ALUMaths and comparisons
CUFetches instructions and gives orders
RegistersHold the values in use now

How to read the table. Match the name to the job. The ALU never fetches a program. The CU never adds two numbers. Registers are not RAM.

  • CPU: the part that processes data.
  • ALU: the CPU part that does maths and logic.
  • CU: the CPU part that directs the other parts.
  • Register: a tiny storage spot inside the CPU.

An input device sends data into the computer. It turns the input into numbers the machine can store.

Input lands in RAM first. The CPU then reads it.

Input deviceWhat it sends in
KeyboardText and commands
Mouse or trackpadPointing and clicks
ScannerPictures of pages
TouchscreenTaps and swipes
MicrophoneSound
Braille keyboardText for people who cannot see the screen

An output device shows results in a form people can use.

A braille display shows text as raised dots. A printer makes a hard copy on paper.

Output deviceWhat comes out
Monitor or projectorPictures and text
Speaker or headphonesSound
PrinterResults on paper
Braille displayRaised dots
3D printerA solid object from a 3D design

Inkjet, laser, and dot matrix printers put ink or toner on paper. A 3D printer builds a solid object layer by layer.

A student types a report and prints it. Name one input device, one output device, and the CPU job.

Goal. Name input, output, and processing.

Rule. Input sends data in. Output shows a result. The CPU runs the program.

Steps. The keyboard sends the text. That is input.

Steps. The printer puts the report on paper. That is output.

Steps. The CPU ran the editor. That is processing.

Result: Keyboard in. Printer out. CPU processed the text.

Cover the answers. Try each item on paper first.

Watch out: Do not call the screen the computer. The screen only shows output. The CPU inside does the work.

⚡ Quick Check Flashcards4 questions
Question 1
Put these in order: output, input, processing.
Try answering before revealing!
Question 2
Which CPU part does arithmetic?
Try answering before revealing!
Question 3
Why does the CPU need registers?
Try answering before revealing!
Question 4
Is a speaker an input device or an output device?
Try answering before revealing!

1.2 Evolution of computers

537 words · 2 min read

Computers shrank from room-sized machines to chips.

Early electronic computers filled rooms. A phone now holds far more power.

John von Neumann described a key design. The program and the data live in the same memory.

The CPU reads instructions from memory. It also reads data from memory. That design is the von Neumann architecture.

Nearly every computer still follows it. A CPU. A memory. Input. Output. Paths that join them.

In 1965, Gordon Moore noticed a pattern. Transistor counts on a chip doubled about every two years. Cost fell as well.

That prediction is Moore's law. It is not a law of nature. The doubling has slowed.

Moore's law was a prediction, not a physics law.

The von Neumann idea still sits in exam diagrams. Program and data share one memory.

A chip starts with 1000 transistors. The count doubles every two years. How many after 6 years?

Goal. Find the transistor count after 6 years.

Rule. Each doubling multiplies by 2. Years ÷ 2 gives the number of doublings.

Substitute. 6 ÷ 2 = 3 doublings.

Arithmetic. 1000 × 2 × 2 × 2 = 8000.

Check. Three doublings means 2 to the power 3. 1000 × 8 = 8000.

Result: 8000 transistors.

TimeWhat changed
1940sRoom-sized electronic computers appear.
1965Moore's law predicts transistor counts doubling about every two years.
1970sA whole CPU fits on one chip: the microprocessor.
1980sPersonal computers reach desks. Graphical screens follow.
1990sThe World Wide Web makes computers useful to many people.
2000sLaptops, then phones and tablets, make computing portable.
TodayWearables, smart appliances, and AI tools are common.

How to read the table. Each row is a step in time. Size falls. Use grows. The 1970s row is the microprocessor step.

Early machines used a command line interface. You typed every command.

Then came the graphical user interface (GUI). Icons, windows, and menus. You click instead of type.

Phones went further. You touch them. You can also speak to them.

Room-sized machinesMicroprocessor on one chipPersonal computer with a GUIPhones and everyday devices
Four steps in the story. Rooms, chips, desks, then pockets.

How to read the figure. Time runs down the page. Each box is smaller hardware in more places. The last box is a phone or a wearable.

  • von Neumann architecture: CPU, memory, input, and output, with program and data in the same memory.
  • Moore's law: a prediction that transistor counts double about every two years.
  • GUI: a screen of windows, icons, and menus you can click.

Pause here. Answer before you scroll to the answers.

Watch out: Moore's law was a prediction about chip density. It is not a law of physics. It has slowed.

⚡ Quick Check Flashcards3 questions
Question 1
What is stored in memory in the von Neumann architecture?
Try answering before revealing!
Question 2
What did Moore's law predict?
Try answering before revealing!
Question 3
Name two ways of giving commands before touchscreens.
Try answering before revealing!

1.3 Computer memory

894 words · 4 min read

Memory is where the computer keeps data and programs.

A computer stores everything as binary numbers. Only 0 and 1 are used.

One 0 or 1 is a bit. Four bits make a nibble. Eight bits make a byte.

Longer groups are words. Word size is a CPU fact. You will meet it again in section 1.5.

This bit-and-byte idea is the bridge to number systems. Chapter 2 will convert bases. Here you only need powers of two.

UnitEqual to
1 KB (kilobyte)1024 bytes
1 MB (megabyte)1024 KB
1 GB (gigabyte)1024 MB
1 TB (terabyte)1024 GB
1 PB (petabyte)1024 TB
1 EB (exabyte)1024 PB
1 ZB (zettabyte)1024 ZB
1 YB (yottabyte)1024 YB

How to read the table. Each step multiplies by 1024. That is 2 to the power 10. Do not use 1000 in exam work unless the question says so.

Values that fit in a group of bits. Each extra bit doubles the count.

How to read the figure. The x-axis is the number of bits. The y-axis is how many different values fit. The last point is 8 bits and 256 values. That is one byte.

Here is the same idea in Python. Eight bits give 256 values. Ten bits give 1024, which is one KB in bytes.

Python
print(2 ** 8)
print(2 ** 10)

Output
256
1024

The program prints 256 and then 1024. Those match the plot and the unit table.

Primary memory is the memory the CPU uses directly. Programs must sit there before they run.

RAMROM
Keeps data with power on?Yes, then it forgets when power goes. Volatile.Yes, and it still keeps data with power off. Non-volatile.
JobWorking memory while programs runStartup code and other rare-change code
Write easily?Yes, all the timeNormally read only
SpeedFaster than secondary memoryFast and small

How to read the table. Compare down each column. RAM is the desk. ROM keeps the startup notes. Do not store your files only in RAM.

The startup program lives in ROM. It loads the operating system from storage into RAM.

RAM is fast. The CPU is faster. Waiting wastes time.

Cache is a small, very fast memory. It sits between the CPU and RAM.

It keeps copies of data the CPU uses often. The CPU looks in cache first. A miss means a RAM read.

Secondary memory keeps files after power-off. It is bigger and cheaper. It is also slower.

The CPU cannot use it directly. Data must first come into RAM.

DeviceWhat it is
HDDA hard disk drive. Spinning platters. Large and slower.
SSDA solid state drive. No spinning parts. Faster than an HDD.
Optical discA CD or DVD. Laser-read. Good for copies you carry.
FlashA memory card or pen drive. Small and portable.

How to read the table. Pick speed versus size. An SSD is quicker than an HDD. A pen drive is for carrying files, not for the whole operating system in most machines.

RegistersCacheRAM (main memory)Secondary storageFast and small at the topSlow and large at the base
Memory hierarchy. Higher is faster and smaller. Lower is slower and larger.

How to read the figure. The top is registers. Then cache. Then RAM. The base is secondary storage. Higher means faster and smaller. Lower means slower and larger.

RAM forgets when power goes off. ROM and disks remember.

A photo takes 3 MB of storage. How many kilobytes is that?

Goal. Convert 3 MB to KB.

Rule. 1 MB = 1024 KB.

Substitute. 3 × 1024.

Arithmetic. 3 × 1024 = 3072.

Result: 3072 KB.

Think of RAM as a desk. Think of secondary storage as shelves. Work happens on the desk. Files sleep on the shelves.
Powers of two matter in every storage question. 1024, not 1000, is the usual school step.

  • Bit: one 0 or one 1.
  • Byte: a group of 8 bits.
  • RAM: fast working memory that forgets when power goes off.
  • ROM: memory that keeps its contents with power off.
  • Cache: tiny fast memory between the CPU and RAM.
  • Secondary memory: storage that keeps files after shutdown.

Test yourself on these. Then read the explained answers.

Watch out: RAM forgets. ROM and secondary storage remember. Your files are safe in secondary storage, not in RAM.

⚡ Quick Check Flashcards6 questions
Question 1
How many bits are in a byte?
Try answering before revealing!
Question 2
What is a nibble?
Try answering before revealing!
Question 3
Why does a computer need secondary memory?
Try answering before revealing!
Question 4
What does the cache store?
Try answering before revealing!
Question 5
Why do storage units jump by 1024, not 1000?
Try answering before revealing!
Question 6
Which memory holds the startup program?
Try answering before revealing!

1.4 Data transfer between memory and CPU

537 words · 2 min read

Parts of a computer talk over shared wires called buses.

Data must move all the time. It moves between the CPU and RAM. It also moves between RAM and storage.

A bus is a set of shared wires. Three buses form the system bus.

The data bus carries the data. The address bus carries addresses. The control bus carries signals such as read or write.

An address is the number that names one memory location.

CPURAMData busAddress busControl bus
The system bus. Three shared paths join the CPU and RAM.

How to read the figure. The CPU is on the left. RAM is on the right. The top path is the data bus. Arrows go both ways there. The middle path is the address bus. The bottom path is the control bus. Those two run from the CPU.

The address bus names the place. The data bus carries the value.

BusCarriesDirection
Data busThe data itselfBoth ways (bidirectional)
Address busThe address of a locationOne way: from the CPU
Control busRead or write signalsOne way: from the CPU

How to read the table. Only the data bus is two-way. The CPU always sends the address. The CPU always sends the command. Data must return on a read.

A memory controller is the hardware that moves data into and out of RAM.

A read has a fixed order. The CPU puts the address on the address bus. It puts a read signal on the control bus. The memory controller then puts data on the data bus.

A write uses the same first two steps. The CPU also puts data on the data bus. The memory stores it at that address.

Do not mix WHERE and WHAT. The address is where. The data is what.

Bus questions are often just this split. Address is where. Data is what. Control is the command.

  • Bus: shared wires that join parts of a computer.
  • Address: the number that names one memory location.
  • Memory controller: hardware that moves data in and out of main memory.

Order a memory read. The three events are: data on the data bus; address on the address bus; read on the control bus.

Goal. Order the three steps of a read.

Rule. Name the place first. Then say read. Then the data returns.

Steps. Address on the address bus.

Steps. Read on the control bus.

Steps. Data on the data bus.

Result: Address, then control, then data.

Write a short answer. Then check the notes below.

Watch out: The address bus says WHERE. The data bus says WHAT. Mixing them is the usual error.

⚡ Quick Check Flashcards4 questions
Question 1
Name the three buses of the system bus.
Try answering before revealing!
Question 2
Which bus is bidirectional, and why?
Try answering before revealing!
Question 3
What travels on the control bus?
Try answering before revealing!
Question 4
Which hardware manages data in and out of main memory?
Try answering before revealing!

1.5 Microprocessors

845 words · 4 min read

A microprocessor is a whole CPU on one chip.

Early CPUs filled cabinets. Later, a full CPU fit on one chip. That chip is a microprocessor.

Today people say CPU, processor, and microprocessor for the same idea.

A modern chip holds huge numbers of tiny parts. Transistors are the main ones. It can run many instructions in a short time.

Fetch the next instruction from memoryDecode: the CU reads the instructionExecute: the ALU or memory actsWrite the result, then repeat
One instruction cycle. Fetch, decode, execute, then store.

How to read the figure. The CU fetches and decodes. The ALU often executes. The result goes to a register or to RAM. Then the cycle starts again.

SpecificationWhat it tells you
Word sizeHow many bits the processor works on at once. Common sizes: 16, 32, and 64.
Memory sizeThe largest RAM it can name. A bigger word size allows more RAM.
Clock speedPulses per second from the internal clock. More pulses can mean more work. Measured in hertz.
CoresSeparate computing units on one chip. Two is dual-core. Four is quad-core. Eight is octa-core.

How to read the table. Word size is width. Clock speed is pace. Cores are how many workers sit on one chip.

Clock speed uses hertz. GHz means billions of pulses per second.

A processor has a 64-bit word size. How many bytes is one word?

Goal. Convert 64 bits to bytes.

Rule. 1 byte = 8 bits. Bytes = bits ÷ 8.

Substitute. 64 ÷ 8.

Arithmetic. 64 ÷ 8 = 8.

Result: 8 bytes per word.

GenerationTimeWord sizeClock speedExample chips
First1971 to 19734 or 8 bits108 to 200 kHzIntel 8080
Second1974 to 19788 bitsUp to 2 MHzIntel 8085, Motorola 6800
Third1979 to 198016 bits4 to 6 MHzIntel 8086
Fourth1981 to 199532 bitsUp to 133 MHzIntel 80386, Motorola 68030
Fifth1995 to today64 bitsHundreds of MHz to a few GHz, many coresPentium, Celeron, Xeon

How to read the table. Word size grows down the rows. Clock speed grows too. Later rows add more cores. Treat the clock numbers as typical classroom figures.

A 32-bit processor can name at most 4 GB. That is 2322^{32} bytes, which is 4294967296 bytes.

A 64-bit processor can name far more. In principle that is up to 16 exabytes. Real machines use less.

Write the largest memory of a 32-bit processor as a power of two, and give the byte count.

Goal. State 2322^{32} and its value in bytes.

Rule. n address bits can name 2 to the power n bytes.

Arithmetic. 2322^{32} = 4294967296.

Check. That is 4 GB in the usual classroom conversion.

Result: 4294967296 bytes, which is 4 GB.

A microcontroller is not the same as a microprocessor. It is a tiny complete computer on one chip.

The chip holds a CPU, a little RAM, some ROM, and device connections. A microprocessor chip holds only the CPU.

A microcontroller does one job again and again. It can run a wash cycle. It can sit in a remote control or a keyboard.

MicroprocessorMicrocontroller
On the chipOnly the CPUCPU plus RAM, ROM, and connections
Built forGeneral work on a computer or phoneOne fixed task inside a device
Cost and sizeBigger and costlierSmall and cheap

How to read the table. Ask what lives on the chip. If RAM and ROM are included, it is a microcontroller. If the chip is only the CPU, it is a microprocessor.

A microcontroller is a tiny whole computer, not a small CPU alone.

Exam traps mix these two words. A washing-machine chip is a microcontroller.

  • Microprocessor: a CPU on a single chip.
  • Word size: how many bits the CPU works on at once.
  • Clock speed: how many clock pulses happen each second.
  • Core: one computing unit inside the chip.
  • Microcontroller: a tiny computer on one chip, made for one job.

Cover the answers. Try each item on paper first.

Watch out: A microcontroller is not just a small microprocessor. It is a tiny whole computer made for one job.

⚡ Quick Check Flashcards4 questions
Question 1
What is a core?
Try answering before revealing!
Question 2
What does 2 GHz mean?
Try answering before revealing!
Question 3
Why does a bigger word size allow more memory?
Try answering before revealing!
Question 4
A washing machine has a chip controlling its cycles. Microprocessor or microcontroller?
Try answering before revealing!

1.6 Data and information

686 words · 3 min read

Data is raw facts. Information is what you learn after processing.

To a computer, everything is data. Instructions, pictures, songs, and documents. Inside, it is 0s and 1s.

Data means raw facts. Information is data processed so it means something.

Attendance for four weeks is 8, 7, 9, and 6 days. What information can we make?

Goal. Turn four facts into one useful number.

Rule. Mean = total ÷ count.

Substitute. (8 + 7 + 9 + 6) ÷ 4.

Arithmetic. 30 ÷ 4 = 7.5.

Result: Mean 7.5 days per week. That number is information.

TypeWhat it isExamples
StructuredFits a strict table of rows and columnsAttendance records, sales rows, ticket bookings
UnstructuredNo fixed record formatPhotos, videos, audio, social posts
Semi-structuredNo strict table, but tags label each valueEmails, HTML pages, CSV files

How to read the table. Ask if you can drop the data into a grid. Yes: structured. Tags but no grid: semi-structured. A photo: unstructured.

Roll numberStudentMonthAttendance (in %)
R1Student AMay95
R2Student BMay75
R1Student AJuly98
R2Student BJuly65

How to read the table. Each row is one record. Columns have fixed names. That is structured data. A computer can sort it by month or by roll number.

Semi-structured data uses a tag. The tag says what a value means. An email tags the sender and the subject.

Capture: turn facts into digital dataStore: save files or database rowsRetrieve: fetch a needed recordDelete mark: space is only flagged free
Data life. Capture, store, retrieve. Delete is often only a mark.

How to read the figure. Capture comes first. Storage is next. Retrieval fetches a record. The last box is a delete mark. The bits may still be on the disk.

Data capturing means gathering facts and making them digital. A keyboard captures typing. A barcode reader captures a product code.

Data storage means saving the data in files or databases. Large stores may use data servers.

Data retrieval means fetching a stored record when you need it. Good organisation makes retrieval fast.

Digital data can be lost. A disk can fail. A user can delete by mistake. Malware can destroy files.

Here is the surprise. A delete usually does not wipe the bits. It only marks the space as free.

The data stays until something new overwrites it. Data recovery tries to get those bits back. Recovery fails after overwrite.

That cuts both ways. You may recover a file you need. Someone else may recover a file you meant to drop. Wipe a device before you discard it. Use a tool that overwrites the space. Protect live files with passwords and, for important files, encryption.

Deleted files stay until something overwrites them.

A recycle bin is not a wipe. Emptying it still may only mark space free.

  • Data: raw facts the computer stores.
  • Information: data processed so it answers a question.
  • Structured data: data in a strict table.
  • Unstructured data: data with no fixed record format.
  • Semi-structured data: data labelled with tags, not a strict grid.

Pause here. Answer before you scroll to the answers.

Watch out: Deleting a file usually just marks its space as free. The data can still be recovered until it is overwritten.

⚡ Quick Check Flashcards4 questions
Question 1
What is the difference between data and information?
Try answering before revealing!
Question 2
Is a photo structured or unstructured data?
Try answering before revealing!
Question 3
Name the three steps in the life of stored data.
Try answering before revealing!
Question 4
Why can a deleted file sometimes be recovered?
Try answering before revealing!

1.7 Software

917 words · 4 min read

Hardware is the parts you can touch. Software is the instructions.

Hardware alone can do nothing. It needs instructions. A set of instructions is software.

You cannot touch software. A file on disk is a soft copy. The same thing on paper is a hard copy.

Applications: browser, editorProgramming tools: compilerSystem software: OS, driversHardware: CPU, RAM, disk
Software layers. Each layer uses the layer below it.

How to read the figure. Hardware is the base. System software sits on it. Programming tools sit next. Applications sit on top. An app cannot skip the OS.

CategoryWhat it doesExamples
System softwareRuns the computer and controls hardwareOperating systems, utilities, device drivers
Programming toolsHelp people write new softwareEditors, translators, debuggers, IDEs
Application softwareDoes jobs for the userWord processors, browsers, photo editors, games

How to read the table. Ask who the user of the software is. The machine: system software. A programmer: tools. A person doing a job: an application.

The operating system is the most basic software. No other software can run without it. It manages the machine.

Examples include Windows, Linux, Ubuntu, Fedora, Android, iOS, and macOS.

System utilities are small maintenance programs. Disk tools and antivirus programs sit here.

A device driver teaches the OS how to use one device. Each new printer or camera needs a matching driver.

A low-level language is tied to one machine. Machine language is pure 0s and 1s. The CPU runs it directly. People find it hard to write.

Assembly language uses short words instead of raw bits. It still fits one CPU family.

A high-level language looks closer to English. C++, Java, and Python are examples. They work on many machines after a translate step.

The program you write is source code. The machine-code version is object code.

TranslatorWhat it translatesHow it works
AssemblerAssembly language to machine codeOne low-level program, for one processor family
CompilerA whole high-level program to machine codeTranslates everything first, then the program runs
InterpreterA high-level program, line by lineTranslates and runs one line at a time

How to read the table. An assembler is for assembly code. A compiler finishes the whole file first. An interpreter stays with you while the program runs.

Source codeCompiler: whole fileObject codeProgram runsSource codeInterpreter: each lineLine runs now
Compiler versus interpreter. Whole file first, or one line at a time.

How to read the figure. The left path is a compiler. Source becomes object code. Then it runs. The right path is an interpreter. Each line is translated and run. There is no separate object-code box on the right.

An editor lets you type code. A debugger helps you find errors. An IDE bundles editor, build tools, and debugger. Python IDLE is a simple IDE.

General purpose software is ready-made for many users. A spreadsheet is one example. A browser is another.

Customised software is built for one group. A school management system is customised. It fits better. It costs more to build.

KindSource codeCostExamples
ProprietaryClosedUsually paidMicrosoft Windows
FreewareClosed, but free to useFreeAdobe Reader
FOSSOpen; anyone may read and improve itFreeUbuntu, Python, LibreOffice, Firefox

How to read the table. Price and source code are different questions. Free to use is not the same as open source.

A computer can run with no application. It cannot run with no system software.

Freeware is free to use. Open source also shows the code.

In an exam, sort by job first: system, tool, or application. Then sort by licence if asked.

Sort these into the three software categories: antivirus, assembler, web browser.

Goal. Place each program in one category.

Rule. System software maintains the machine. Tools help you write code. Applications do a user job.

Steps. Antivirus maintains the system. It is a utility.

Steps. An assembler translates assembly code. It is a programming tool.

Steps. A browser does a job for the user. It is application software.

Result: Antivirus: system utility. Assembler: programming tool. Browser: application.

  • Software: instructions that make hardware work.
  • Compiler: a translator that converts a whole program before it runs.
  • Interpreter: a translator that converts and runs one line at a time.
  • FOSS: free and open source software.

Test yourself on these. Then read the explained answers.

Watch out: Freeware is not the same as open source. Free to use does not mean the source code is open.

⚡ Quick Check Flashcards5 questions
Question 1
What is the difference between hardware and software?
Try answering before revealing!
Question 2
Which translator converts assembly language to machine code?
Try answering before revealing!
Question 3
How does an interpreter differ from a compiler?
Try answering before revealing!
Question 4
Is a school management system general purpose or customised software?
Try answering before revealing!
Question 5
A program is free to use, but you cannot read its source. Freeware or FOSS?
Try answering before revealing!

1.8 Operating system

534 words · 2 min read

The operating system is the manager of the whole computer.

An operating system (OS) manages every resource. CPU time. RAM. Disk. Network. Input and output devices.

It starts other programs. It keeps them apart. It checks who may do what. That is why it is a resource manager.

It has two big goals. First, give programs a place to run. Second, give you a user interface.

InterfaceHow you give commandsWhere you see it
Command-basedYou type commandsMS-DOS, Unix
Graphical (GUI)You click icons and menusWindows, Ubuntu, Fedora, macOS
Touch-basedYou tap and swipeAndroid, iOS
Voice-basedYou speakVoice helpers
Gesture-basedYou wave, tilt, or shakeSome phones and games

How to read the table. The left column is the style. The middle column is the action. A phone may use more than one style.

JobWhat it means
Process managementA running task is a process. The OS shares the CPU among processes.
Memory managementThe OS gives each process RAM, then takes it back.
File managementThe OS creates, updates, deletes, and protects files.
Device managementThe OS talks to drivers so screens, printers, and disks work.

How to read the table. Four jobs, four resources: CPU, RAM, files, and devices. Name the resource, then the job.

Power onROM startup program runsOS copied from storage into RAMOS takes control of devicesYou can open programs
Boot sequence. Power, ROM, load the OS, then programs.

How to read the figure. Power comes first. ROM code runs next. The OS is copied into RAM. Then the OS takes control. Only then can you open a program. If ROM startup fails, the OS never loads.

No operating system means no programs can run.

Booting is the chain from power to a ready OS. ROM holds the first link. Storage holds the OS file. RAM holds the running OS.

The machine feels slow with many programs open. Which OS job is working hardest?

Goal. Name the OS job under load.

Rule. Many open programs means many processes sharing one CPU.

Steps. Each program is a process.

Steps. Process management shares CPU time among them.

Result: Process management.

  • Operating system: the system software that manages the machine and starts other programs.
  • Process: a program that is running.
  • Booting: starting the computer and loading the OS into RAM.

Write a short answer. Then check the notes below.

Watch out: A computer can work without application software. It cannot work without an operating system.

⚡ Quick Check Flashcards4 questions
Question 1
Why is the operating system called a resource manager?
Try answering before revealing!
Question 2
What is a process?
Try answering before revealing!
Question 3
Name the four management jobs of an OS.
Try answering before revealing!
Question 4
Who brings the operating system into RAM at startup?
Try answering before revealing!

Summary

148 words · 1 min read
  • A computer system has a CPU, memory, input, output, and storage.
  • The CPU holds an ALU, a CU, and registers.
  • The von Neumann design stores program and data in one memory.
  • Bit, nibble, byte, then units that grow by 1024.
  • RAM is fast and forgets. ROM keeps startup code. Cache speeds the CPU. Secondary storage keeps files.
  • The system bus is the data bus, address bus, and control bus.
  • Microprocessors grew from 4-bit chips to 64-bit multicore chips. Microcontrollers are tiny one-job computers.
  • Data becomes information after processing. Data may be structured, semi-structured, or unstructured.
  • Deleting usually marks space as free. Recovery works until overwrite.
  • Software is system software, programming tools, or applications. Freeware is not open source.
  • The operating system manages processes, memory, files, and devices. Booting loads it from storage into RAM.
Explain each important word in your own words. Then say why the rule works.

Exercises

473 words · 2 min read

These questions are new. Show your thinking. For programs, write your answer before you run the code.

1.1 A barcode scanner sends a code. The CPU looks up the price. A speaker beeps. Name input, processing, and output.

1.2 A student says “the monitor computed the answer.” What should you correct?

1.3 Why can the CPU read an instruction and a number from the same RAM in the von Neumann design?

1.4 A chip has 500 transistors. The count doubles every two years for 4 years. How many then?

1.5 How many bytes are in 4 KB?

1.6 Write 1 GB as a power of two and give the number of bytes.

1.7 You save a photo, then switch the machine off. Where must the photo live to survive?

1.8 Place these from fastest to slowest: RAM, registers, HDD.

1.9 The CPU wants the byte at address 200. Which bus carries 200, and which bus later carries the byte?

1.10 On a write, why must the data bus work in the CPU-to-memory direction?

1.11 A 32-bit word holds how many bytes?

1.12 A microwave chip runs one heating program and includes RAM on the same chip. Name this chip type.

1.13 Marks in a table, a tagged JSON order, and a product video: classify each.

1.14 You empty the recycle bin. Why might a recovery tool still find the file?

1.15 Sort these jobs: disk cleaner, Python IDLE, video editor.

1.16 Why can two free programs still differ in licence?

1.17 Many files are open, and the machine pauses between clicks. Which two OS jobs are busiest?

1.18 List the boot chain from power to a usable desktop.

Answers

  1. 1.1: Input: scanner. Processing: the CPU looks up the price. Output: the beep.
  2. 1.2: The monitor is output. The CPU computed the answer.
  3. 1.3: Program and data share one memory. The CPU fetches both from that memory.
  4. 1.4: 2000 transistors. Four years is two doublings.
  5. 1.5: 4096 bytes. 4 × 1024.
  6. 1.6: 2302^{30} = 1073741824 bytes.
  7. 1.7: Secondary storage. RAM would forget. Cache would forget too.
  8. 1.8: Registers, then RAM, then HDD. Cache would sit between registers and RAM if listed.
  9. 1.9: Address bus carries 200. Data bus later carries the byte.
  10. 1.10: The CPU is sending a value to store. Data must travel to memory.
  11. 1.11: 4 bytes. Bits ÷ 8.
  12. 1.12: A microcontroller. CPU, RAM, and ROM sit together for one job.
  13. 1.13: Structured. Semi-structured. Unstructured.
  14. 1.14: Emptying often only marks space free. The bits remain until overwrite.
  15. 1.15: Disk cleaner: system utility. IDLE: programming tool. Video editor: application.
  16. 1.16: One can be freeware with closed source. The other can be FOSS with open source.
  17. 1.17: Process management shares the CPU. Memory management shares RAM.
  18. 1.18: Power on. ROM startup runs. OS copied into RAM. OS takes control. Then you open programs.
Up next
Continue to the next chapter