Exam 1: Creating Your First Java Classes

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

   public class First    {      public static void main(String[] args)      {         System.out.println("First Java application");      }    } Given the above code, which item identifies the method's return type?

(Multiple Choice)
4.8/5
(34)

{ public static void main(String[] args)    {       System.out.println("First Java application");    } } Given the above code, which item identifies the access specifier?

(Multiple Choice)
4.9/5
(39)

Programmers use ____ to organize program code and make it easier to read.

(Multiple Choice)
4.8/5
(40)

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

(Essay)
4.9/5
(38)

You use an  import  statement when you want to access a built-in Java class that is contained in a group of classes called a(n) ____.

(Multiple Choice)
4.8/5
(34)
Match each term with the correct statement below.
Premises:
Series of characters that will appear in output exactly as entered
Responses:
polymorphism
javadoc
Java virtual machine (JVM)
Correct Answer:
Verified
Premises:
Responses:
Series of characters that will appear in output exactly as entered
polymorphism
(Matching)
5.0/5
(38)

____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term "method."

(Multiple Choice)
4.8/5
(35)

public class FindMyErrors {    public static void main(String[] args)    {        System.out.println("My application with errors)     } Given the above code, identify three separate syntax errors.

(Essay)
4.9/5
(44)

Regarding code layout, write the following Java code using a common alternate placement of the first curly brace: public static void main(String[] args) { System.out.println("First Java application"); }

(Essay)
5.0/5
(32)

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

(Essay)
4.8/5
(37)
Match each term with the correct statement below.
Premises:
The rules for the programming language
Responses:
encapsulation
whitespace
high-level programming languages
Correct Answer:
Verified
Premises:
Responses:
The rules for the programming language
encapsulation
(Matching)
4.8/5
(40)

Line comments start with ____.

(Multiple Choice)
4.7/5
(27)

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

(Multiple Choice)
4.9/5
(38)
Match each term with the correct statement below.
Premises:
Placing data and methods within an object
Responses:
attributes
literal string
whitespace
Correct Answer:
Verified
Premises:
Responses:
Placing data and methods within an object
attributes
(Matching)
4.8/5
(35)
Match each term with the correct statement below.
Premises:
Hypothetical computer used to run a Java program
Responses:
high-level programming languages
method
syntax
Correct Answer:
Verified
Premises:
Responses:
Hypothetical computer used to run a Java program
high-level programming languages
(Matching)
4.8/5
(27)

What are some of the reasons the javac command might not be recognized?

(Essay)
4.8/5
(43)
Showing 61 - 76 of 76
close modal

Filters

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