14. A programmer is working with C. Which type of language is this?
Answer: B
C is a compiled language.
C is classified as a compiled language because it is transformed from source code into machine code by a compiler before execution, allowing for efficient performance and optimization.
A) Interpreted
Interpreted languages are executed line-by-line by an interpreter at runtime, which is not the case for C. C requires compilation into machine code, making this option incorrect.
B) Compiled
C is indeed a compiled language, where source code is processed by a compiler to create an executable program. This characteristic is fundamental to C's performance and efficiency.
C) Machine
Machine languages consist of binary code that the computer's hardware can directly execute. C is not a machine language; rather, it is a high-level programming language that needs to be compiled into machine code.
D) Assembly
Assembly language is a low-level programming language that is closely related to machine code but is still not the same as C. C is a higher-level language that requires a compiler, making assembly language an incorrect option in this context.
Conclusion
C's classification as a compiled language is definitive because it relies on a compiler to convert its code into executable machine code, enhancing performance and efficiency. All other options fail to accurately describe C's operational mechanism and characteristics.