Filters
Question type

Study Flashcards

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

Correct Answer

verifed

verified

Arguments are pieces of information that...

View Answer

   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?


A) public
B) static
C) void
D) println

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

You can define a Java class using  any n...

View Answer

A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class.


A) identifier
B) access specifier
C) parameter
D) Pascal casing

E) C) and D)
F) A) and C)

Correct Answer

verifed

verified

A(n) ____ is a GUI object resembling a window in which you can place messages you want to display.


A) JDK
B) dialog box
C) variable
D) argument

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

A class named  first  is different from a class named  FIRST because ____.


A) Java is case insensitive
B) it is confusing to have two names that look the same
C) Java is case sensitive
D) first and FIRST are different literal strings

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

Why is creating a GUI environment for users a natural use for object orientation?

Correct Answer

verifed

verified

Creating a GUI environment for users als...

View Answer

Match each term with the correct statement below.

Premises
A GUI object resembling a window in which you can place messages you want to display
Responses
method
attributes
debugging
dialog box
javadoc
Java virtual machine (JVM)
inheritance
encapsulation
syntax
literal string
Machine language
high-level programming languages
whitespace
compiler
polymorphism

Correct Answer

method
attributes
debugging
dialog box
javadoc
Java virtual machine (JVM)
inheritance
encapsulation
syntax
literal string
Machine language
high-level programming languages
whitespace
compiler
polymorphism

It is best to use the ____ available text editor when writing Java programs.


A) most complex
B) simplest
C) best
D) latest

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

If you receive an error that states, "Exception in thread 'main' java.lang.NoClassDefFoundError," when you try to execute the application, you probably do not have your ____ set correctly.


A) class length
B) class path
C) java
D) object

E) A) and C)
F) C) and D)

Correct Answer

verifed

verified

Match each term with the correct statement below.

Premises
Documentation comments
Responses
Machine language
whitespace
method
debugging
dialog box
Java virtual machine (JVM)
encapsulation
compiler
syntax
polymorphism
high-level programming languages
javadoc
attributes
literal string
inheritance

Correct Answer

Machine language
whitespace
method
debugging
dialog box
Java virtual machine (JVM)
encapsulation
compiler
syntax
polymorphism
high-level programming languages
javadoc
attributes
literal string
inheritance

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

A) True
B) False

Correct Answer

verifed

verified

A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines.

A) True
B) False

Correct Answer

verifed

verified

Match each term with the correct statement below.

Premises
Translates an entire program before carrying out the statement
Responses
whitespace
Machine language
attributes
compiler
Java virtual machine (JVM)
encapsulation
method
inheritance
literal string
high-level programming languages
syntax
dialog box
debugging
javadoc
polymorphism

Correct Answer

whitespace
Machine language
attributes
compiler
Java virtual machine (JVM)
encapsulation
method
inheritance
literal string
high-level programming languages
syntax
dialog box
debugging
javadoc
polymorphism

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

A) True
B) False

Correct Answer

verifed

verified

Once an application is written and saved, the Java class must be compiled. Describe what two procedures must occur in order to view the output of the application.

Correct Answer

verifed

verified

1. You must compile the class ...

View Answer

A program written in ____ is the most basic circuitry-level language.


A) Java
B) machine language
C) BASIC
D) C

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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


A) public
B) static
C) void
D) First

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

Match each term with the correct statement below.

Premises
Creating classes that share from existing classes
Responses
inheritance
Java virtual machine (JVM)
debugging
high-level programming languages
dialog box
attributes
Machine language
syntax
compiler
method
polymorphism
javadoc
encapsulation
literal string
whitespace

Correct Answer

inheritance
Java virtual machine (JVM)
debugging
high-level programming languages
dialog box
attributes
Machine language
syntax
compiler
method
polymorphism
javadoc
encapsulation
literal string
whitespace

____ 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.


A) Applets
B) Methods
C) Arguments
D) Objects

E) None of the above
F) C) and D)

Correct Answer

verifed

verified

Showing 21 - 40 of 76

Related Exams

Show Answer