1.
What is the full meaning of JRE?
Correct Answer
C. Java Runtime Environment
Explanation
JRE stands for Java Runtime Environment. It is a software package that provides the necessary runtime environment for executing Java applications. It includes the Java Virtual Machine (JVM), class libraries, and other supporting files. JRE is required to run Java applications on a computer system.
2.
What kind of language is Java?
Correct Answer
A. Object oriented
Explanation
Java is classified as an object-oriented language because it is designed to organize and structure programs around objects, which are instances of classes. In Java, objects have properties and behaviors, and they interact with each other through methods. This approach allows for code reusability, modularity, and encapsulation. Additionally, Java supports features such as inheritance, polymorphism, and abstraction, which are fundamental principles of object-oriented programming.
3.
Is Java language 100% object-oriented?
Correct Answer
B. No
Explanation
Java language is not 100% object-oriented because it supports primitive data types, such as int and boolean, which are not objects. Additionally, Java has static methods and variables that belong to the class rather than an instance of the class, which goes against the principles of pure object-oriented programming.
4.
What is the full meaning of JDK?
Correct Answer
A. Java Development kit
Explanation
JDK stands for Java Development Kit. It is a software development environment used for developing Java applications. It includes a set of tools and libraries that are necessary for writing, testing, and running Java programs. The JDK provides the necessary components, such as a compiler, debugger, and runtime environment, to develop and deploy Java applications. It is widely used by Java developers to create and maintain Java applications.
5.
Which of the following is an extension of the Java program?
Correct Answer
D. .java
Explanation
The extension ".java" is the correct answer because it is commonly used to denote a Java program file. In Java, source code files are typically saved with a .java extension. This allows the Java compiler to recognize and process the file as a Java program. The other options (.txt, .doc, .class) are not specific to Java programs and are used for different file types or formats.
6.
Java was developed by which of the following?
Correct Answer
B. Sun
Explanation
Java was developed by Sun Microsystems. Sun Microsystems was a company that was founded in 1982 and played a significant role in the development of computer technologies. In the mid-1990s, a team of engineers at Sun Microsystems, led by James Gosling, developed the Java programming language. Java was designed to be a platform-independent language that could run on any device or operating system. Sun Microsystems later became a subsidiary of Oracle Corporation in 2010.
7.
What was Java previously called?
Correct Answer
C. Oak
Explanation
Java was previously called Oak.
8.
To convert Java language code into output form, which of the following operation(s) is/are needed?
Correct Answer
C. Both a and b
Explanation
To convert Java language code into output form, both interpretation and compilation are needed. Interpretation involves executing the code line by line, while compilation involves translating the code into a machine-readable format. Both processes are necessary to ensure that the code is correctly executed and produces the desired output.
9.
Which of the following application program is required to run java program?
Correct Answer
A. Jdk
Explanation
The Java Development Kit (jdk) is required to run a Java program. It includes all the necessary tools and libraries needed for compiling, debugging, and executing Java code. The jdk provides the Java Virtual Machine (JVM) which is responsible for running Java programs on different platforms. The other options, dbk and SDK, are not valid choices as they do not refer to the specific program required for running Java programs. Therefore, the correct answer is jdk.
10.
Who created Java?
Correct Answer
C. Both a and b
Explanation
Both James Gosling and Patrick Naughton are credited as the creators of Java. They, along with a team of developers at Sun Microsystems, developed the programming language in the mid-1990s. James Gosling is often referred to as the "father of Java" as he played a key role in the design and implementation of the language, while Patrick Naughton made significant contributions to the development of the original Java compiler and runtime system. Therefore, the correct answer is that both James Gosling and Patrick Naughton created Java.