Back to all Computer Science topics
Topic 1.1Computer Science HL49 flashcards

Hardware and operation

Practice Flashcards

Flip cards to reveal answers
Card 1 of 491.1.1
1.1.1
Question

What is the function of the control unit (CU)?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All Flashcards in Topic 1.1

Below are all 49 flashcards for this topic. Sign up free to track your progress and get personalized review schedules.

1.1.19 cards

Card 1definition
Question

What is the function of the control unit (CU)?

Answer

It controls and coordinates the CPU: it fetches and decodes instructions and sends control signals telling the other components what to do and when. It does no calculating itself.

Card 2definition
Question

What is the function of the arithmetic logic unit (ALU)?

Answer

It performs all arithmetic operations (add, subtract, multiply, divide) and logic operations (AND, OR, NOT, and comparisons) on data.

Card 3definition
Question

What does the program counter (PC) hold?

Answer

The address of the **next** instruction to be executed. It advances after each instruction is fetched.

Card 4comparison
Question

What is the difference between the MAR and the MDR?

Answer

The MAR holds the **address** being accessed; the MDR holds the **value** travelling to or from memory. Address versus data.

Card 5definition
Question

What does the instruction register (IR) hold?

Answer

The instruction currently being executed, held there while the CU decodes and carries it out.

Card 6definition
Question

What does the accumulator (AC) hold?

Answer

The number the ALU is working on — both the value going in and the answer coming out. ADD 5 turns a 12 in the accumulator into 17, in the same register.

Card 7concept
Question

Name the three buses and what each carries.

Answer

**Address bus** — the memory address (one-way, CPU → memory). **Data bus** — the data or instruction itself (two-way). **Control bus** — the CU's commands and timing signals (two-way).

Card 8concept
Question

Why does a multi-core processor not speed up every program?

Answer

Only work that can be divided between cores benefits. If each step depends on the previous result, the work cannot be split and extra cores sit idle.

Card 9concept
Question

Why does a CPU use registers rather than working directly in RAM?

Answer

Registers sit inside the CPU and can be reached almost instantly, whereas RAM is much slower. Holding working values in registers stops the ALU waiting on memory.

1.1.25 cards

Card 10definition
Question

What is the role of a GPU?

Answer

To perform many simple calculations at the same time. It has thousands of small cores, which suits work made of many identical independent sums — pixels, machine learning, simulations.

Card 11comparison
Question

How does a GPU's architecture differ from a CPU's?

Answer

A CPU has a few powerful cores that handle complicated varied work in order. A GPU has thousands of simple cores that do the same calculation simultaneously.

Card 12example
Question

Give two non-graphics uses of a GPU and say why they fit.

Answer

Machine learning (multiplying huge grids of numbers) and large simulations (updating millions of independent points). Both repeat one calculation across many values.

Card 13concept
Question

When is a GPU a poor choice?

Answer

When the work is a chain of steps that each need the previous answer. Nothing can run in parallel, and GPU cores are individually weaker than CPU cores.

Card 14process
Question

How do the CPU and GPU divide a job between them?

Answer

The CPU runs the program, decides what needs doing, sends the repetitive part and its data to the GPU, and collects the result when it is finished. The GPU never chooses its own work.

1.1.35 cards

Card 15comparison
Question

What is the core difference between a CPU and a GPU?

Answer

A **CPU** has a few powerful cores optimised for **latency** on one stream. A **GPU** has thousands of simple cores optimised for **throughput** on many values at once.

Card 16concept
Question

Why is a GPU poor at branching?

Answer

Its cores run in **lockstep** on the same instruction, so a branch forces some to idle while the others proceed.

Card 17concept
Question

What is the test for whether a GPU will help?

Answer

**Are the operations independent?** Can they run in any order, simultaneously, without needing each other's results?

Card 18example
Question

Why does training need a GPU but inference often not?

Answer

Training is enormous **parallel matrix arithmetic** over a whole dataset. Inference is one input, one pass — small enough for a CPU or a phone.

Card 19concept
Question

Why can moving a program to a GPU make it slower?

Answer

If the work is sequential or branch-heavy it cannot parallelise, each GPU core is slower than a CPU core, and the data must be **copied there and back**.

1.1.45 cards

Card 20concept
Question

List primary memory from fastest to slowest.

Answer

Registers, then cache (L1, L2, L3), then RAM. Each step holds more and takes longer to reach.

Card 21definition
Question

What is the purpose of cache?

Answer

To hold recently used data and instructions in a small, very fast store close to the CPU, so most requests avoid the slower trip to RAM.

Card 22definition
Question

What is a cache hit and a cache miss?

Answer

A hit means the value is already in cache, so no trip to RAM is needed. A miss means it is not, so it is fetched from RAM and copied into cache for next time.

Card 23comparison
Question

What is the difference between RAM and ROM?

Answer

RAM is a large volatile working space holding programs in use; it empties when power is lost. ROM is small, non-volatile and read only, holding the start-up program.

Card 24concept
Question

Why is data copied into cache after a miss?

Answer

Because programs tend to reuse the same values shortly afterwards, so caching it turns the next request into a hit.

1.1.55 cards

Card 25process
Question

What are the three stages of the fetch-decode-execute cycle?

Answer

Fetch the next instruction from memory, decode it in the control unit, then execute it — usually a calculation in the ALU. The cycle then repeats.

Card 26process
Question

Which registers are used during fetch?

Answer

The PC holds the address, which is copied to the MAR. Memory returns the instruction into the MDR, and it moves to the IR. The PC is then increased.

Card 27concept
Question

When is the program counter increased, and why then?

Answer

During fetch. A jump instruction works by writing a new address into the PC during execute — increasing it afterwards would overwrite the jump.

Card 28process
Question

What happens during decode?

Answer

The control unit reads the instruction held in the IR, works out which operation is needed, and sends control signals to the parts that will carry it out.

Card 29concept
Question

Which buses does a fetch use?

Answer

All three: the address bus carries the address out, the control bus carries the read signal, and the data bus brings the instruction back.

1.1.65 cards

Card 30definition
Question

What is pipelining?

Answer

Overlapping the stages of the fetch–decode–execute cycle, so one instruction executes while the next is decoded and a third is fetched.

Card 31concept
Question

Does pipelining make one instruction faster?

Answer

**No.** It still passes through every stage. What improves is **throughput** — how many complete per second.

Card 32formula
Question

How long do n instructions take in a k-stage pipeline?

Answer

**k + (n − 1)** stage-times — the k being the one-off cost of filling the pipeline.

Card 33definition
Question

Name the three causes of a pipeline stall.

Answer

**Branches** (the next instruction is unknown), **data dependencies** (waiting for a result), **resource conflicts** (two stages want the same hardware).

Card 34concept
Question

Why is a deeper pipeline not always better?

Answer

It overlaps more work, but a **wrong branch prediction costs more** because there is more to discard and refill.

1.1.75 cards

Card 35definition
Question

What is secondary storage and why is it needed?

Answer

Non-volatile storage that keeps data when the power is off. RAM empties at power-off, so anything kept permanently — files, programs, the operating system — lives here.

Card 36comparison
Question

Compare an SSD with an HDD.

Answer

An SSD uses flash memory with no moving parts: faster, quieter, more robust, but dearer per gigabyte. An HDD uses a spinning magnetic disk with a moving head: slower and more fragile, but much cheaper for the capacity.

Card 37example
Question

Name three types of external secondary storage and a use for each.

Answer

Portable SSD/HDD for backups and large files; flash drives or memory cards for carrying small amounts; optical discs for distributing identical content cheaply. NAS puts drives on a network for shared access.

Card 38definition
Question

What is eMMC?

Answer

Flash storage soldered onto the board of phones, tablets and budget laptops. Compact and inexpensive, but slower than an SSD and not replaceable.

Card 39concept
Question

How do you decide which storage suits a scenario?

Answer

Weigh capacity, speed, portability, cost and how many people need access at once. The right answer follows from the situation, not from which is newest.

1.1.85 cards

Card 40definition
Question

What is compression?

Answer

Storing the same data in fewer bits. It works because real files repeat themselves, and smaller files need less storage and travel faster over a network.

Card 41comparison
Question

What is the difference between lossy and lossless compression?

Answer

Lossless can rebuild the original exactly — nothing is discarded, only written more briefly. Lossy permanently removes detail people are unlikely to notice, saving far more space but irreversibly.

Card 42process
Question

Explain run-length encoding with an example.

Answer

Each run of identical values is replaced by a count and the value. A row of six white pixels is stored as '6 white' — two values instead of six. Expanding it restores every original pixel.

Card 43concept
Question

When does run-length encoding make a file bigger?

Answer

When neighbouring values rarely repeat, such as a detailed photograph. Most runs are length one, so storing a count beside every value adds data rather than saving it.

Card 44example
Question

Which method suits text, and which suits photographs?

Answer

Text, code and spreadsheets need lossless — one altered character can change the meaning. Photographs, music and video use lossy, because small losses go unnoticed and the saving is much greater.

1.1.95 cards

Card 45definition
Question

What is cloud computing?

Answer

Renting computing from a provider over the internet instead of buying and running the machines yourself. You pay for what you use and the provider keeps the hardware working.

Card 46comparison
Question

What is the difference between IaaS, PaaS and SaaS?

Answer

How far up the stack the provider takes over. IaaS gives you a machine and you install the OS upwards. PaaS runs the OS and runtime, and you supply your program. SaaS is the finished program — you just sign in.

Card 47example
Question

When should an organisation choose IaaS?

Answer

When it needs to choose the operating system or its version — for software with unusual requirements — and has technical staff able to configure and maintain the machines.

Card 48example
Question

When should an organisation choose SaaS?

Answer

When it needs a finished tool and has no technical staff. The provider handles updates, patching and backups, and the service is usable immediately.

Card 49concept
Question

What is the trade-off between control and convenience in cloud services?

Answer

Every layer you hand to the provider saves you work and removes a choice. Towards IaaS: more control, more responsibility for patching and setup. Towards SaaS: ready in minutes, but you accept the provider's features and versions and moving away later is hard.

Want smart review reminders?

Sign up free to track your progress. Our spaced repetition algorithm will tell you exactly which cards to review and when.

Start Free
IB Computer Science HL Topic 1.1 Flashcards | Hardware and operation | Aimnova