Exam 1: Creating Java Programs

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Briefly describe the elements of the main() method: public static void main(String[] args) { Java code... }

(Essay)
4.8/5
(78)

Whenever a method requires multiple arguments, the arguments are always separated with ____.

(Multiple Choice)
4.9/5
(67)

Although not a requirement, it is Java standard that class identifiers begin with an uppercase letter and use other uppercase letters to improve readability.

(True/False)
5.0/5
(72)

____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the information to perform its task or carry out its purpose.

(Multiple Choice)
4.9/5
(68)

____________________ comments are a special case of block comments that are used to generate documentation.

(Short Answer)
4.8/5
(91)

Locating and repairing all syntax errors is part of the process of ____ a program.

(Multiple Choice)
4.9/5
(77)

What happens after a programmer successfully compiles a Java program named "First.java"?

(Essay)
4.8/5
(71)

   public class First    {      public static void main(String[] args)      {         System.out.println("First Java application");      }    } Given the above code, which item identifies that the method will work without instantiating an object of the class?

(Multiple Choice)
4.9/5
(80)

Using the void keyword in the main() method header indicates that a value will be returned by the main() method is called.

(True/False)
4.9/5
(83)

If an object's methods are well written, the user is unaware of the low-level details of how the methods are executed, and the user must simply understand the interface or interaction between the method and the object.

(True/False)
4.8/5
(94)

In a ____ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses , you type cd MyClasses and press Enter.

(Multiple Choice)
4.9/5
(95)

When you define a Java class using an identifier, what are the requirements you need to know?

(Essay)
5.0/5
(69)

A ____ is an error not detected until the program asks the computer to do something wrong, or even illegal, while executing.

(Multiple Choice)
4.9/5
(70)

When you issue the command to compile a class containing errors, the Java compiler does not produce any error messages. You will first need to run the class in order to see error messages.

(True/False)
4.8/5
(84)

Identify why a class named first would be different from a class named FIRST . Explain why it is important to be aware of uppercase and lowercase values when writing Java programs?

(Essay)
4.9/5
(87)

Why is it important for programmers to use program comments?

(Essay)
4.7/5
(75)

Java contains a class named ____ that allows you to produce dialog boxes.

(Multiple Choice)
4.8/5
(70)

Describe the components (objects and classes) that are used in the statement System.out.println() .

(Essay)
4.7/5
(76)

Explain the purpose of arguments and why it is necessary to pass arguments to a method.

(Essay)
4.8/5
(78)

____ refers to the hiding of data and methods within an object.

(Multiple Choice)
4.9/5
(92)
Showing 21 - 40 of 61
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)