0
0
Intro to Computingfundamentals~5 mins

How programs are compiled or interpreted in Intro to Computing - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is a compiler?
A compiler is a tool that translates the whole program from a high-level language into machine code before the program runs. Think of it like translating a whole book into another language before reading it.
Click to reveal answer
beginner
What does an interpreter do?
An interpreter translates and runs a program line-by-line, like a translator who speaks sentence by sentence while someone is talking.
Click to reveal answer
beginner
Name one key difference between compiling and interpreting.
Compiling translates the entire program at once before running, while interpreting translates and runs the program one line at a time.
Click to reveal answer
intermediate
Why might a compiled program run faster than an interpreted one?
Because the whole program is already translated into machine code before running, the computer can execute it directly without translating during execution.
Click to reveal answer
beginner
Give a real-life analogy for how an interpreter works.
Imagine a tour guide translating a foreign language guidebook aloud to a group as they walk through a museum, translating each part as they go.
Click to reveal answer
Which tool translates the entire program before running it?
ADebugger
BCompiler
CInterpreter
DEditor
What is a key feature of an interpreter?
ATranslates code line-by-line during execution
BTranslates the whole program at once
COnly checks for errors without running code
DConverts machine code back to high-level code
Which is generally faster to run after translation?
ACompiled program
BInterpreted program
CBoth are equally fast
DNeither runs faster
Which analogy best describes a compiler?
AWriting a new story
BTranslating sentence by sentence while listening
CFixing mistakes in a text
DTranslating a whole book before reading
What happens if there is an error in a compiled program?
AThe interpreter skips the error
BThe program runs without problems
CThe compiler shows errors before running
DThe error fixes itself automatically
Explain in your own words how a compiler works and why it might make a program run faster.
Think about translating a whole book before reading it.
You got /4 concepts.
    Describe how an interpreter runs a program and give a real-life example to help explain it.
    Imagine someone translating a speech as it happens.
    You got /3 concepts.