Week 3 · Lesson 4 · 55 minutes

Choose secondary storage

I can choose storage by matching trade-offs to a need.

Planned lesson. Follow your teacher’s teaching order.

Source workbook pages: 21.

Resources

Vocabulary

Vocabulary
secondary storage: persistent storage outside the CPU working registers and RAM; NAS: storage reached through a network
55-minute lesson sequence
  1. 0–5 · Retrieve RAM volatility.
  2. 5–15 · Model the technology versus connection distinction.
  3. 15–25 · Guide the laptop scenario using explicit criteria.
  4. 25–45 · Students justify all three choices and their independent backup plan.
  5. 45–50 · Partner challenges one unsupported claim or missing constraint.
  6. 50–55 · Collect the internal/external exit answer.

See it

Three ways to store dataHDDmagnetic disksmoving partsSSDflash memoryno moving partsOptical discread with lightNAS: storage over a network, with HDDs or SSDs inside
Describe a storage technology by how it works, then match that property to the need. Internal or external tells you where it connects, not how it stores data.

Watch

Watch how a hard disk stores bits magnetically on spinning disks. Compare that with flash storage, which has no moving parts.

How do hard drives work? - Kanawat SenananTED-Ed

Open on YouTube

The video is on YouTube, which needs a VPN on most networks in mainland China. It is extra: the lesson works without it.

Try before notes

Why is RAM usually unsuitable as the only place to keep a saved essay?

Build the idea

Secondary storage keeps files beyond the running session. HDDs store magnetically on moving disks. SSDs and memory cards use flash. Optical discs are read with light. Describe a technology by how it works, then connect that property to the need.

Choose using capacity, access time, portability, durability, cost and connectivity. No technology is best for every requirement. A recommendation needs a limitation as well as a benefit.

NAS describes access through a network, not a new recording technology. A NAS may contain HDDs or SSDs. A second copy is only useful if it remains available after the failure you are planning for.

application → local SSD
            → network → NAS [HDD or SSD]
separate backup → independent failure location

See the method

An HDD uses magnetic disks and moving parts. An SSD uses non-volatile flash with no moving mechanical parts. Flash drives, memory cards and eMMC also use flash. Optical drives read discs with light. NAS provides storage over a network; it may contain HDDs or SSDs. Internal or external describes connection/location, not a new storage technology.

Predict then reveal

A field researcher carries a laptop over rough roads and needs quick file opening. Compare SSD and HDD.

Reveal reasoning

An SSD has no moving mechanical parts and generally faster access, making it a strong fit for movement and responsiveness. An HDD may provide more capacity for the budget. The SSD still needs backup and can still fail.

Two project copies are on different folders of the same USB drive. Are they independent protection against drive loss?

Reveal reasoning

No. Losing or damaging that drive removes both folders. Keep another copy on a different device or suitable independent service, and test that it can be restored.

Work one step together

Read the first task. Each learner predicts the first step privately. Compare the method, then complete one intermediate row or one code iteration together. Do not display a finished workbook answer.

Practice

  1. Compare an SSD and an HDD for a school laptop carried every day. Consider movement, access time and cost per capacity. Make a recommendation and one limitation.

Your turn

Complete the remaining steps of task 1 alone, then the next tasks. Predict before running code. Save your own evidence before comparing.

Practice

  1. Compare an SSD and an HDD for a school laptop carried every day. Consider movement, access time and cost per capacity. Make a recommendation and one limitation.
  2. Choose a sensible technology for each case: a camera needs removable storage; a small embedded device needs compact built-in storage; a class needs shared files. Explain one constraint for each. Then design two independent copies for a project.

Check and explain

Internal/external tells you connection or location; it does not identify magnetic versus flash storage.

Point to the first step, row, condition or requirement that supports your answer. If results differ, find the first different state and repair one cause.

Show what you know

Can an SSD be either internal or external?

HL challenge when ready

Why is “no moving parts” not the same as “can never fail”?

Week 3 homework

Show working. Keep code and output. Stop at 25 minutes and mark where you reached.

  1. In the toy machine PC=4. Memory 4 contains LOAD 20 and memory 20 holds 9. Trace the fetch and execute.
  2. Explain why cache, RAM and SSD are not interchangeable. Use one job for each.
  3. Six independent instructions use F,D,E,W with no stalls. Find the ideal cycles and compare with no overlap. Write ideal_cycles(n) in Python for n >= 1. Test n = 1, 4 and 6.
  4. Retrieve logic: simplify (A AND B) OR (A AND NOT B). Give one proof step.

Source workbook pages: 23.

Weekly homework (Word)

Python practice · two short prompts

Spend about 3 minutes on each during practice time. Predict, run, change one thing, then explain. These prompts do not add homework.

A starter is runnable code to explore or complete. If the playground restores your saved code, the linked starter is selected in Example: use Load example when ready. Download your work before confirming replacement.

Prompt 1

Calculate how many whole files fit in a capacity. Change the file size.

No imports needed.

Hint and starter code

// gives the number of complete files; ignore formatting overhead in this simple model.

# // gives the number of complete files; ignore formatting overhead in this simple model.
capacity_bytes = 1000000
file_bytes = 120000
print(capacity_bytes // file_bytes)
Open this starter in Python playground →
Prompt 2

Estimate transfer time from bytes and bytes per second. Double the rate.

No imports needed.

Hint and starter code

Keep units consistent; this excludes startup delay and other overhead.

# Keep units consistent; this excludes startup delay and other overhead.
size_bytes = 6000000
bytes_per_second = 2000000
print(size_bytes / bytes_per_second)
Open this starter in Python playground →