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
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
In high-level programming languages, what is the primary advantage of using variables?
- Variables are not supported in high-level languages
- They provide a way to store data in use by the program
- Variables only store constant values
- Variables are only used in low-level programming languages
Which type of language usually provides greater efficiency on embedded systems?
- High-level programming language
- Low-level programming language
Which stage of the software development process involves the use of a compiler?
- Writing source code
- Debugging
- Running the program
- Translating source code into machine code
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
Which of the following is a low-level programming language?
- Assembly
- Python
- JavaScript
- BASIC
What is the role of code formatting tools in an IDE?
- They automatically fix runtime errors in the code
- They generate new code segments
- They provide suggestions for code improvement
- They improve code readability
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
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