Translators (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
Why are translators needed in programming?
Why are translators needed in programming?
Computers only execute machine code
What does a compiler do with a high-level program?
What does a compiler do with a high-level program?
Translates entire program at once
Why does compiled code execute faster than interpreted code?
Why does compiled code execute faster than interpreted code?
It is pre-compiled before execution
What is a major drawback of using a compiler?
What is a major drawback of using a compiler?
Long initial translation time
How does an interpreter translate high-level code?
How does an interpreter translate high-level code?
Line-by-line during runtime
What is a key benefit of using an interpreter during development?
What is a key benefit of using an interpreter during development?
Immediate error feedback
Why is interpreted code slower than compiled code?
Why is interpreted code slower than compiled code?
Translation happens line-by-line at runtime
What is the relationship between assembly instructions and machine instructions?
What is the relationship between assembly instructions and machine instructions?
One-to-one correspondence
What is a main benefit of using assembly language?
What is a main benefit of using assembly language?
Direct control over hardware
Why is assembly code difficult to port to different systems?
Why is assembly code difficult to port to different systems?
It is hardware-specific
Which translator is best for developing a large commercial software application?
Which translator is best for developing a large commercial software application?
Compiler
Which translator is ideal for scripting and prototyping?
Which translator is ideal for scripting and prototyping?
Interpreter
