{"base":{"id":"cs9-28","subject":"Systems","title":"System software and translators","scene":"sys9","steps":[{"mode":"os","eyebrow":"The operating system","title":"Managing everything","body":"The operating system sits between apps and hardware. It runs programs, manages memory and files, and controls devices. See which jobs it does for each action.","actions":[{"id":"open","label":"Open a file"},{"id":"save","label":"Save a file"},{"id":"print","label":"Print"}]},{"mode":"utils","eyebrow":"Drivers and utilities","title":"Keeping the system working","body":"A driver helps the OS control one device. Utility programs maintain and protect the computer. Look at the problem each one solves.","actions":[{"id":"u0","label":"Driver"},{"id":"u1","label":"Anti-malware"},{"id":"u2","label":"Disk clean-up"},{"id":"u3","label":"Backup"}]},{"mode":"translate","eyebrow":"Translators","title":"Compiler or interpreter?","body":"Processors only run machine code. A compiler translates the whole program first; an interpreter translates and runs one line at a time. This program has an error on line 3.","actions":[{"id":"comp","label":"Compiler"},{"id":"interp","label":"Interpreter"},{"id":"step","label":"Show the next step"}]},{"mode":"quiz","eyebrow":"Check yourself","title":"Which translator?","body":"A game company wants to give players a fast program without sharing its source code.","question":"Which translator suits this best?","options":["An interpreter","A driver","A compiler"],"answer":2,"right":"Correct. A compiler produces a machine-code file that runs fast and can be shared without the source code.","wrong":"Not quite. Which one makes a file you can share?","look":"translate"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"The operating system is an app like a game.\"","body":"It is system software that manages the hardware for all apps."},{"tag":"Popular idea","title":"\"A driver is a type of anti-virus.\"","body":"A driver lets the OS talk to a device; anti-malware is a utility."},{"tag":"Popular idea","title":"\"Interpreted programs are translated once.\"","body":"They are translated every time they run."}]},{"type":"cards","id":"compare","eyebrow":"Compare","title":"Compiler vs interpreter","items":[{"tag":"Compiler","title":"All at once","body":"Translates the whole program before running. Lists all errors. Makes a fast machine-code file."},{"tag":"Interpreter","title":"Line by line","body":"Translates and runs each line. Stops at the first error. Easier for testing, slower to run."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Translation game","items":[{"title":"Human translators","time":"15 minutes","need":["A short story in 6 sentences","Two partners"],"steps":["Partner 1 (compiler) translates all 6 sentences into a code language, then hands over the full translation.","Partner 2 (interpreter) translates and acts out one sentence at a time.","Put a mistake in sentence 4. When does each partner notice?","Discuss which is better for testing and which for final use."],"why":"This mirrors the main difference between compilers and interpreters.","safety":"No safety risks."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"Which is system software?","options":["A drawing app","A web page","Operating system"],"answer":2,"right":"Correct. It manages the computer.","wrong":"Not quite. Manages resources."},{"question":"What does a device driver do?","options":["Lets the OS control a specific device","Removes viruses","Compiles programs"],"answer":0,"right":"Correct. A translator for hardware.","wrong":"Not quite. One device."},{"question":"Which utility protects against viruses?","options":["Anti-malware","Disk clean-up","Backup"],"answer":0,"right":"Correct. Scans and quarantines.","wrong":"Not quite. Malware."},{"question":"Which translator stops at the first error while running?","options":["Compiler","Interpreter","Driver"],"answer":1,"right":"Correct. It runs line by line.","wrong":"Not quite. Line by line."},{"question":"Why does the OS manage memory?","options":["To make the screen brighter","So programs don't overwrite each other","To delete files"],"answer":1,"right":"Correct. Keeps programs separate.","wrong":"Not quite. Several programs at once."},{"question":"A compiled program can run without…","options":["the compiler","the processor","electricity"],"answer":0,"right":"Correct. It is already machine code.","wrong":"Not quite. What was needed only for translation?"}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["what jobs the operating system does","the difference between drivers and utility software","how a compiler works","how an interpreter works"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"operating system","meaning":"Software that manages hardware and runs programs."},{"word":"device driver","meaning":"Software that lets the OS control a device."},{"word":"utility","meaning":"Software that maintains or protects the computer."},{"word":"compiler","meaning":"Translates a whole program into machine code before it runs."},{"word":"interpreter","meaning":"Translates and runs a program one line at a time."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize KS3 Computer Science","Raspberry Pi Foundation, Computing curriculum resources"]}]},"overlay":null}