Exam 1: Creating Your First Java Classes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags
Match each term with the correct statement below.
Premises:
Self-contained block of code that carries out an action
Responses:
Java virtual machine (JVM)
method
high-level programming languages
Correct Answer:
Verified
Premises:
Responses:
Self-contained block of code that carries out an action
Java virtual machine (JVM)
Free
(Matching)
4.9/5
(23)
Correct Answer:
Verified

Match each term with the correct statement below.
Premises:
Allow you to assign intuitive names to areas of computer memory
Responses:
high-level programming languages
compiler
Java virtual machine (JVM)
Correct Answer:
Verified
Premises:
Responses:
Allow you to assign intuitive names to areas of computer memory
high-level programming languages
Free
(Matching)
4.9/5
(43)
Correct Answer:
Verified

Match each term with the correct statement below.
Premises:
Repairing syntax errors
Responses:
compiler
whitespace
dialog box
Correct Answer:
Verified
Premises:
Responses:
Repairing syntax errors
compiler
Free
(Matching)
4.8/5
(35)
Correct Answer:
Verified

If you modify a class, what are the steps you must take to see your changes in the executing program?

(Essay)
4.8/5
(42)

Given the statement:   System.out.println("First Java application"); out refers to ____.

(Multiple Choice)
4.9/5
(50)

Why is it important for programmers to use program comments?

(Essay)
4.7/5
(33)

Provide examples of logic errors. How do programmers minimize logic errors in their code?

(Essay)
4.9/5
(38)

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

(Multiple Choice)
4.8/5
(39)

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

(True/False)
4.9/5
(37)

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)
5.0/5
(33)

A(n) ____ error occurs when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it.

(Multiple Choice)
4.9/5
(26)

Logic errors are easily identified when a program is compiled.

(True/False)
4.8/5
(37)
Match each term with the correct statement below.
Premises:
The characteristics that define an object
Responses:
attributes
high-level programming languages
method
Correct Answer:
Verified
Premises:
Responses:
The characteristics that define an object
attributes
(Matching)
4.9/5
(38)

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
(46)

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

(True/False)
4.9/5
(37)

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

(Multiple Choice)
4.9/5
(28)

System.out.println("First Java application"); ​ Given the above code, identify and describe the use of a literal string and the use of parentheses.

(Essay)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(31)
Showing 1 - 20 of 76
close modal

Filters

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