Filters
Question type

Study Flashcards

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


A) JBox
B) JOptionPane
C) JDialog
D) JGUI

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

Correct Answer

verifed

verified

Write a line comment and block comment for the following line of code identifying the author, date, and purpose of the method. System.out.println("Hello Students");

Correct Answer

verifed

verified

Possible comments include:
// ...

View Answer

____ 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) C) and D)
F) All of the above

Correct Answer

verifed

verified

After a successful compile, you can run the class file on any computer that has a ____.


A) Java language interpreter
B) Web browser
C) text editor
D) DOS

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

Correct Answer

verifed

verified

____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context.


A) Polymorphism
B) Architecturally neutral
C) Source code
D) Insulation

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Match each term with the correct statement below. -Hypothetical computer used to run a Java program


A) literal string
B) high-level programming languages
C) dialog box
D) syntax
E) whitespace
F) compiler
G) attributes
H) Machine language
I) Java virtual machine (JVM)

J) A) and B)
K) None of the above

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

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) All of the above
F) A) and B)

Correct Answer

verifed

verified

Match each term with the correct statement below. -Series of characters that will appear in output exactly as entered


A) literal string
B) high-level programming languages
C) dialog box
D) syntax
E) whitespace
F) compiler
G) attributes
H) Machine language
I) Java virtual machine (JVM)

J) D) and E)
K) E) and H)

Correct Answer

verifed

verified

You must use the Java interpreter to translate the bytecode into executable statements before running a Java application.

A) True
B) False

Correct Answer

verifed

verified

Match each term with the correct statement below. -The rules for the programming language


A) literal string
B) high-level programming languages
C) dialog box
D) syntax
E) whitespace
F) compiler
G) attributes
H) Machine language
I) Java virtual machine (JVM)

J) A) and H)
K) None of the above

Correct Answer

verifed

verified

JOption.Pane.showMessageDialog(null, "Show my message"); The showMessageDialog() method above requires two arguments. What are the two arguments and what is the purpose of each argument?

Correct Answer

verifed

verified

1. null - message box will be ...

View Answer

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

Correct Answer

verifed

verified

You misspelled the command jav...

View Answer

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.


A) Windows
B) Java
C) graphical
D) DOS

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

Correct Answer

verifed

verified

In programming, named computer memory locations are called ____________________ because they hold values that might vary.

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 C)
F) A) and D)

Correct Answer

verifed

verified

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?

Correct Answer

verifed

verified

Java is case sensitive. Programmers must...

View Answer

What are the two main types of Java programs?

Correct Answer

verifed

verified

You can write two kinds of programs usin...

View Answer

Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement.

A) True
B) False

Correct Answer

verifed

verified

Showing 21 - 40 of 68

Related Exams

Show Answer