Filters
Question type

Study Flashcards

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

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

Correct Answer

verifed

verified

Programs that are embedded in a Web page are called Java ____.


A) consoles
B) applets
C) applications
D) windowed applications

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

B

public class Hello {    public static void main(String[] args)    {        _________________________    } { Using the given code, write the statement in the main() method body that will produce the output "Hello to all!".

Correct Answer

verifed

verified

System.out.println("Hello to a...

View Answer

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


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

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

Correct Answer

verifed

verified

A

Logic errors are easily identified when a program is compiled.

A) True
B) False

Correct Answer

verifed

verified

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) ____________________.

Correct Answer

verifed

verified

In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist.


A) active
B) undefined
C) static
D) void

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

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

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

A) True
B) False

Correct Answer

verifed

verified

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


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

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

Correct Answer

verifed

verified

____ is the process the compiler uses to divide your source code into meaningful portions; the message means that the compiler was in the process of analyzing the code when the end of the file was encountered prematurely.


A) Running
B) Debugging
C) Compiling
D) Parsing

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

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


A) Procedures
B) Calls
C) Classes
D) Applications

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

Correct Answer

verifed

verified

The ____________________ is also called the Java class library; it contains information about how to use every prewritten Java class, including lists of all the methods you can use with the classes.

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. In addition, explain the difference between comments that consist of a double-slash (//) and those that have a starting and ending slash asterisk (/* .. */). System.out.println("Hello Students");

Correct Answer

verifed

verified

Possible comments include:

...

View Answer

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

True

A Java identifier can contain only letters, digits, ampersands, or number signs.

A) True
B) False

Correct Answer

verifed

verified

If a compiler detects a violation of language rules, it refuses to translate the class to ____.


A) an application
B) a logic error
C) machine code
D) Java

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

Correct Answer

verifed

verified

It is a tradition among programmers that the first program you write in any language produces "____" as its output.


A) Hi, your name!
B) Hello, world!
C) My first program!
D) Hello, your name!

E) A) and B)
F) None of the above

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

Showing 1 - 20 of 61

Related Exams

Show Answer