1. What is the function of a translator in programming?
To optimise the source code for better performance
To convert high-level language into machine
To compile programs into higher-level languages
To interpret human languages for the CPU
2. Can a programming language be both compiled and interpreted?
Yes, all languages can be both
No, languages are either compiled or interpreted
Only scripting languages can be both
It depends on the CPU type