62. Which type of language is C++?
Answer: A
C++ is a compiled language.
C++ is categorized as a compiled language because its source code is transformed into machine code by a compiler before it is executed, allowing for optimization and efficient execution.
A) Compiled
This option is correct as C++ requires a compiler to convert its source code into machine code. This compilation process enhances performance and allows for more complex programming constructs that are not as easily managed in interpreted languages.
B) Machine
Machine language is a low-level programming language that consists of binary code directly readable by a computer's CPU. C++ is not written in machine language; it is a high-level language that requires compilation to reach machine code.
C) Assembly
Assembly language is another low-level programming language that is closely related to machine code but uses mnemonics instead of binary. C++ is not an assembly language; it operates at a higher abstraction level and requires a compiler to convert code into assembly or machine code.
D) Interpreted
Interpreted languages are executed line-by-line by an interpreter at runtime, without prior compilation. C++ is not interpreted; it relies on a compilation process to generate executable files, distinguishing it from interpreted languages.
Conclusion
C++ is definitively a compiled language due to its reliance on a compiler to produce machine-readable code, which improves performance and efficiency. The other options fail to accurately describe C++ as they refer to lower-level languages or execution methods that do not apply to C++.