Which of the following statements A-D are true with reference to high-level…
2024
Which of the following statements A-D are true with reference to high-level computer programming languages?
A. These need to be translated into machine code in order to run on a computer.
B. These are written using mnemonic codes.
C. These are specific to the computer's hardware.
D. These are portable languages.
Choose the correct answer from the options given below:
- A.
B and C Only
- B.
A and B Only
- C.
A and D Only
- D.
C and D Only
Attempted by 364 students.
Show answer & explanation
Correct answer: C
Correct answer summary: The statements "These need to be translated into machine code in order to run on a computer" and "These are portable languages" are true. The other statements are false.
These need to be translated into machine code in order to run on a computer: True. High-level languages are executed on hardware only after translation by a compiler (which produces machine code) or by an interpreter (which translates and executes code).
These are written using mnemonic codes: False. Mnemonic codes describe assembly language, which is low-level. High-level languages use more abstract syntax and keywords, not mnemonic assembly codes.
These are specific to the computer's hardware: False. Being hardware-specific is a property of low-level languages. High-level languages are designed to be independent of underlying hardware details.
These are portable languages: True. High-level languages aim for portability so the same source code can run on different systems with little or no modification, provided an appropriate translator or runtime is available.
Therefore choose the option that lists the two true statements: the need for translation into machine code and portability across hardware and operating systems.