Which type of translation is more suitable for software which needs to execute on several different platforms?
- Compilation
- Interpretation
What name is given to a file generated by compilation?
- Assembly language
- Hexadecimal
- Object code
- App
What is the primary function of a translator in the context of programming languages?
- To execute the program
- To provide a user-friendly interface for programming
- To manage memory allocation in the program
- To convert source code into machine code
How does an interpreter execute code in comparison to a compiler?
- Interpreters convert the entire program into machine code before execution
- Interpreters execute code line by line without producing a separate machine code file
- Interpreters only work with high-level languages
- Interpreters are faster than compilers in all scenarios
What is the purpose of error highlighting in an IDE?
- To ignore syntax errors in the code
- To automatically correct errors during runtime
- To visually identify and locate syntax or logical errors in the code
- To prevent the compilation of code with errors
Which type of programming language is more likely to handle memory management automatically?
- High-level programming language
- Low-level programming language
- Both high-level and low-level languages equally
- Neither high-level nor low-level languages
How does an interpreter contribute to the portability of code?
- Interpreters generate machine code for specific hardware architectures
- Interpreters make code less portable across different platforms
- Code interpreted by an interpreter is hardware-independent
- Portability is not affected by the use of interpreters
Which of the following is a potential advantage of using a compiler over an interpreter?
- Immediate code execution
- Automatic detection of syntax errors in the code
- Real-time feedback during code development
- Faster program execution after the initial compilation
What is the key characteristic of a compiler in comparison to an interpreter?
- Compilers execute code line by line
- Compilers require an interpreter to run the code
- Compilers convert the entire program into machine code before execution
- Compilers are slower than interpreters
How does an IDE contribute to project management?
- It automatically generates project documentation
- It organises and manages project files, resources, and dependencies
- It limits the number of files in a project for simplicity
- It only supports single-file projects