ACTUAL Exam Questions and CORRECT
Answers
What is the functionality of a Java Virtual Machine? - CORRECT ANSWER - executes a
program
What will a Java statement end with? - CORRECT ANSWER - semi-colon
What is the difference between byte code and source code in Java? - CORRECT
ANSWER - Source code is read by a java compiler, while byte code is produced by a java
compiler
What is the extension of a Java source file? - CORRECT ANSWER - .java
What is a program? - CORRECT ANSWER - a sequence of instructions a computer
follows in order to perform a specific task
What is an algorithm? - CORRECT ANSWER - a sequence of well-defined logical steps
for performing a task or solving a problem
What is the difference between character and string literals? - CORRECT ANSWER -
enclosed in single quotation marks vs. the representation of a string value
What is the scope of a variable? - CORRECT ANSWER - A variable's scope is the part of
the program that has access to the variable
What is a constant? - CORRECT ANSWER - special kind of variable whose value can
NOT be changed after itis initialized