Docsity

ABSOLUTE JAVA 6TH EDITION TEST PAPER WITH QUESTIONS AND SOLUTIONS, Exams of Java Programming

Toggle sidebar
bg1
ABSOLUTE JAVA 6TH EDITION TEST PAPER WITH QUESTIONS
AND SOLUTIONS
Question 1.
Which JDK command is correct to run a Java application in ByteCode.class?
Answer: java ByteCode.
Question 2.
Java virtual machine.
Answer: ________ is a software that interprets Java bytecode.
Question 3.
Windows XP.
Answer: ________ is an operating system.
Question 4.
Java.
Answer: ________is interpreted.
Question 5.
Java API.
Answer: ________ contains predefined classes and interfaces for developing
Java programs.
Question 6.
Which of the following statements is correct?
Answer: Every statement in a program must end with a semicolon..
Question 7.
Java IDE.
Answer: ________provides an integrated development environment (IDE) for
rapidly developing Java programs. Editing, compiling, building, debugging,
and online help are integrated in one graphical user interface.
Question 8.
Sun Microsystems.
Answer: Java was developed by ________.
pf3

Partial preview of the text

Download ABSOLUTE JAVA 6TH EDITION TEST PAPER WITH QUESTIONS AND SOLUTIONS and more Exams Java Programming in PDF only on Docsity!

ABSOLUTE JAVA 6TH EDITION TEST PAPER WITH QUESTIONS

AND SOLUTIONS

Question 1.

Which JDK command is correct to run a Java application in ByteCode.class?

Answer: java ByteCode.

Question 2.

Java virtual machine.

Answer: ________ is a software that interprets Java bytecode.

Question 3.

Windows XP.

Answer: ________ is an operating system.

Question 4.

Java.

Answer: ________is interpreted.

Question 5.

Java API.

Answer: ________ contains predefined classes and interfaces for developing Java programs.

Question 6.

Which of the following statements is correct?

Answer: Every statement in a program must end with a semicolon..

Question 7.

Java IDE.

Answer: ________provides an integrated development environment (IDE) for rapidly developing Java programs. Editing, compiling, building, debugging, and online help are integrated in one graphical user interface.

Question 8.

Sun Microsystems.

Answer: Java was developed by ________.

Question 9.

Java bytecode.

Answer: Java compiler translates Java source code into ________.

Question 10.

Test.java.

Answer: Suppose you define a Java class as follows: public class Test { } In order to compile this program, the source code should be stored in a file named

Question 11.

Java.

Answer: ________is Architecture-Neutral.

Question 12.

applets.

Answer: Java ________ can run from a Web browser.

Question 13.

CPU.

Answer: ________ is the brain of a computer.

Question 14.

Java 123.

Answer: The expression "Java " + 1 + 2 + 3 evaluates to ________.

Question 15.

a logic error.

Answer: If a program compiles fine, but it produces incorrect result, then the program suffers ________.

Question 16.

Which of the following code displays the area of a circle if the radius is positive?

Answer: if (radius > 0) System.out.println(radius * radius * 3.14159);.

Question 17.

What is 1 + 1 + 1 + 1 + 1 == 5?

Answer: true.