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 type of source code is shown below?
- High-level programming language
- Low-level programming language
- Assembly
- Object code
What is the primary role of a compiler in the context of high-level programming languages?
- To execute the program directly
- To convert high-level code into machine code
- To interpret the code line by line during runtime
- To provide a user-friendly interface for programming
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 name is given to a file generated by compilation?
- Assembly language
- Hexadecimal
- Object code
- App
What is a common advantage of high-level programming languages in terms of human-readability?
- Code written in high-level languages is usually more difficult to understand
- High-level languages often require additional comments for clarity
- Code written in high-level languages is generally more readable and easier to understand
- Human-readability is not a consideration in programming languages
In terms of flexibility and adaptability, which type of programming language is generally more versatile?
- High-level programming language
- Low-level programming language
- Both high-level and low-level languages equally
- Neither high-level nor low-level languages
Which characteristic is more commonly associated with high-level programming languages?
- High portability
- Low portability
Which of the following statements best describes a characteristic of high-level programming languages?
- Closer to machine code, providing direct hardware control
- Requires translation into machine code
- Involves writing code using binary instructions
- Offers limited abstraction and readability for programmers
Which type of language usually provides greater efficiency on embedded systems?
- High-level programming language
- Low-level programming language