ITPEC IP October 2018 Question 9
Which of the following is an appropriate description concerning the Java language?
Explanation
An object-oriented language with platform-independent portability — Java programs run on any platform that has a Java virtual machine.
Java source code is compiled not into the machine language of one CPU but into bytecode, which a Java virtual machine (JVM) executes. Any OS or device with a JVM runs the same bytecode, the idea summed up as “write once, run anywhere”. Java is object-oriented: programs are built from classes and objects, with encapsulation and inheritance. It is widely used for server-side web applications, Android apps and business systems.
Answer (c)
Why not others:
- •(a) — the markup language for describing web pages is HTML; it tags the structure of a document and is not a programming language
- •(b) — the language developed for scientific and engineering calculations is FORTRAN
- •(d) — the language developed for business-oriented calculations and data processing is COBOL
Key rule: Match each language with its purpose: FORTRAN for science, COBOL for business, C for systems, Java for portable object-oriented programs, HTML for marking up web pages.
Algorithm and Programming · AI-written, may contain errors
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.