CSE 110 ASU FALL ACTUAL QUESTIONS WITH
VERIFIED SOLUTIONS
◉ Which of the following are reasons why Java is good, but not
perfect, for beginners?
I. A certain amount of technical machinery is necessary to write
basic, simple programs
II. There are many extensions
III. There are a large number of extensive libraries in Java.
Answer: I, II, III
◉ What is the difference between an editor and a compiler.
Answer: An editor allows program files to be written and stored; a
compiler converts program files into an executable program
◉ Suppose you examine a simple Java program and the first line is '
public Class HelloPrinter ' . Is this the same thing in Java as the line '
public Class helloprinter ' ?.
Answer: No, because Java is case-sensitive, these are considered to
be completely distinct
,◉ What statements about the integrated development environment
(IDE) are true?
I. You may run Java class files even after exiting the IDE
II. The IDE can invoke a virtual machine, which is required to run a
Java program
III. Translating Java source code into class files is enough to then
actually run the program.
Answer: I, II, III
◉ Consider the following statements about folders and your
integrated development environment (IDE):
I. Hierarchical folders help to organize a project
II. Folders are a way to visualize the layout of a file system
III. Folders make it impossible to lose or accidentally delete a file.
Answer: I, II
,◉ Which of the following statements regarding backup strategies for
Java files are true?
I. You should back up your projects often to prevent loss of valuable
work
II. You should check your backups only in case of loss of data
III. You should pay attention to the backup direction.
Answer: I, III
◉ Every Java program consists of one or more.
Answer: classes
◉ Characters that are grouped together between double quotes
(quotation marks) in Java are called.
Answer: strings
◉ Every statement in Java must be terminated with.
Answer: the semi-colon character ;
◉ These two lines of code do not produce the same output. Why?
, System.out.println(7 + 3);
System.out.println("7 + 3");.
Answer: The quotes cause the second expression to be treated as a
string
◉ What is the output from this code snippet?
System.out.print("The sum is ");
System.out.println("7 + 3");.
Answer: The sum is 7 + 3
◉ Which of the following symbols is used to terminate a Java
program statement?.
Answer: semicolon
◉ Which of the following statements is valid with respect to the
usage of a semicolon in Java?.
Answer: A semicolon is used to denote the end of a statement
◉ Which of the following statements is true with respect to the main
method in Java?.
Answer: Every Java application must have a main method
VERIFIED SOLUTIONS
◉ Which of the following are reasons why Java is good, but not
perfect, for beginners?
I. A certain amount of technical machinery is necessary to write
basic, simple programs
II. There are many extensions
III. There are a large number of extensive libraries in Java.
Answer: I, II, III
◉ What is the difference between an editor and a compiler.
Answer: An editor allows program files to be written and stored; a
compiler converts program files into an executable program
◉ Suppose you examine a simple Java program and the first line is '
public Class HelloPrinter ' . Is this the same thing in Java as the line '
public Class helloprinter ' ?.
Answer: No, because Java is case-sensitive, these are considered to
be completely distinct
,◉ What statements about the integrated development environment
(IDE) are true?
I. You may run Java class files even after exiting the IDE
II. The IDE can invoke a virtual machine, which is required to run a
Java program
III. Translating Java source code into class files is enough to then
actually run the program.
Answer: I, II, III
◉ Consider the following statements about folders and your
integrated development environment (IDE):
I. Hierarchical folders help to organize a project
II. Folders are a way to visualize the layout of a file system
III. Folders make it impossible to lose or accidentally delete a file.
Answer: I, II
,◉ Which of the following statements regarding backup strategies for
Java files are true?
I. You should back up your projects often to prevent loss of valuable
work
II. You should check your backups only in case of loss of data
III. You should pay attention to the backup direction.
Answer: I, III
◉ Every Java program consists of one or more.
Answer: classes
◉ Characters that are grouped together between double quotes
(quotation marks) in Java are called.
Answer: strings
◉ Every statement in Java must be terminated with.
Answer: the semi-colon character ;
◉ These two lines of code do not produce the same output. Why?
, System.out.println(7 + 3);
System.out.println("7 + 3");.
Answer: The quotes cause the second expression to be treated as a
string
◉ What is the output from this code snippet?
System.out.print("The sum is ");
System.out.println("7 + 3");.
Answer: The sum is 7 + 3
◉ Which of the following symbols is used to terminate a Java
program statement?.
Answer: semicolon
◉ Which of the following statements is valid with respect to the
usage of a semicolon in Java?.
Answer: A semicolon is used to denote the end of a statement
◉ Which of the following statements is true with respect to the main
method in Java?.
Answer: Every Java application must have a main method