Which is an example of a compiled language pair?

Prepare for the eLearnSecurity Junior Penetration Tester exam with our comprehensive quiz platform. Improve your skills with multiple-choice questions, detailed explanations, and exam tips. Get exam ready with ease!

Multiple Choice

Which is an example of a compiled language pair?

Explanation:
Compiled languages are transformed into machine-executable code by a compiler before they run. Java is compiled to bytecode by a Java compiler, and that bytecode runs on the Java Virtual Machine, where it’s often optimized further at runtime by the JIT. C++ is compiled directly to native machine code by a C++ compiler. Because both languages go through a formal compilation step to produce executable code, they form a true compiled-language pair. The other options mix interpreted languages or non-programming markup: Python and Ruby are typically interpreted (or run via an interpreter), JavaScript is usually interpreted (with modern engines using JIT, but not compiled to native ahead of time in the traditional sense), TypeScript compiles to JavaScript rather than to native code, and HTML/CSS are markup languages, not programming languages.

Compiled languages are transformed into machine-executable code by a compiler before they run. Java is compiled to bytecode by a Java compiler, and that bytecode runs on the Java Virtual Machine, where it’s often optimized further at runtime by the JIT. C++ is compiled directly to native machine code by a C++ compiler. Because both languages go through a formal compilation step to produce executable code, they form a true compiled-language pair.

The other options mix interpreted languages or non-programming markup: Python and Ruby are typically interpreted (or run via an interpreter), JavaScript is usually interpreted (with modern engines using JIT, but not compiled to native ahead of time in the traditional sense), TypeScript compiles to JavaScript rather than to native code, and HTML/CSS are markup languages, not programming languages.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy