STUDY GUIDE COMPLETE SOLUTIONS
VERIFIED
◉ The programmer, not the compiler, is responsible for testing a
program to identify. Answer: Run-time errors
◉ Which one of the following errors represents a part of a program
that is incorrect according to the rules of the programming language.
Answer: Syntax errors
◉ Who or what is responsible for inspecting and testing the
program to guard against logic errors?. Answer: Programmer
◉ When developing a program, the programmer adds the discount
amount to the total instead of subtracting it. What type of an error is
this?. Answer: A logic error
◉ Which one of the following methodologies is a sequence of steps
formulated in English for solving a program?. Answer: Pseudocode
◉ In order to run Java programs on a computer, the computer needs
to have software called a(n). Answer: virtual machine
,◉ In order to translate a Java program to a class file, the computer
needs to have software called a(n). Answer: compiler
◉ The Java statement public static void main(String[] args) declares
a. Answer: method
◉ A Java virtual machine is. Answer: software
◉ Which of the following statements must you include in a Java class
that can be executed by the virtual machine?. Answer: public static
void main(String[] args)
◉ What is the output of the following code snippet?
System.out.print("Hello");
System.out.println("Good Day!");. Answer: HelloGood Day!
◉ Which one of the following code snippets compiles without errors
and displays the output "Hello Good Day!" on the screen?. Answer:
System.out.print("Hello ");
System.out.println("Good Day!");
,◉ What is the output of the following code snippet?
public class PrintIt{
public static void main(String[] args){
System.out.println("4 * 4" + 12);
}
}. Answer: 4 * 412
◉ Writing a computer game in Java that has graphics, motion, and
sound effects. Answer: requires a team of skilled programmers
◉ Which option correctly completes this statement?
Programs can repeat simple instructions very quickly to
I. help human users to perceive images and sound
II. remove the drudgery of repeating instructions by hand
III. overcome the need for connectivity to the computer network.
Answer: I, II
, ◉ The ENIAC computer burned out transistors at the rate of.
Answer: none -- it used vacuum tubes
◉ In order for the ENIAC computer to be re-programmed. Answer:
wires needed to be plugged into a different wiring configuration
◉ The language developed by Sun Microsystems that became the
Java programming language was originally designed to be simple,
secure, and. Answer: usable for many different processor types
◉ The term "applet" refers to. Answer: a Java program that runs
within a web browser
◉ Programmers have embraced Java over its closest rival, C++,
mainly because. Answer: it is easier to use
◉ Java is said to be a "safe" programming language. What does this
mean?. Answer: Java programs can run within a browser without
fear that they may attack your computer
◉ In order for Java to achieve protability. Answer: compiled Java
programs contain instructions for a virtual machine