Exam 1: Creating Your First Java Classes
Exam 1: Creating Your First Java Classes76 Questions
Exam 2: Using Data81 Questions
Exam 3: Using Methods, Classes and Objects79 Questions
Exam 4: More Object Concepts84 Questions
Exam 5: Making Decisions80 Questions
Exam 6: Looping77 Questions
Exam 7: Characters, Strings and the Stringbuilder82 Questions
Exam 8: Arrays77 Questions
Exam 9: Advanced Array Concepts80 Questions
Exam 10: Introduction to Inheritance78 Questions
Exam 11: Advanced Inheritance Concepts78 Questions
Exam 12: Exception Handling79 Questions
Exam 13: File Input and Output78 Questions
Exam 14: Introduction to Swing Components79 Questions
Exam 15: Using Javafx and Scene Builder65 Questions
Select questions type
When you issue the command to compile a class containing errors, the Java compiler does not produce any error messages. You will first need to run the class in order to see error messages.
(True/False)
4.9/5
(45)
Match each term with the correct statement below.
Premises:
Any combination of nonprinting characters
Responses:
debugging
compiler
polymorphism
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(31)
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.
(Multiple Choice)
4.9/5
(42)
What are the differences between K & R style and Allman style? Which one is used in this textbook?
(Essay)
4.8/5
(34)
____ 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.
(Multiple Choice)
4.7/5
(44)
System software is used for tasks such as word processing, calculations and playing games.
(True/False)
4.9/5
(36)
When you run a Java application using the ____ command, do not add the .class extension to the filename.
(Multiple Choice)
4.7/5
(35)
Whenever a method requires multiple arguments, the arguments are always separated with ____.
(Multiple Choice)
4.8/5
(42)
After a successful compile, you can run the class file on any computer that has a ____.
(Multiple Choice)
4.8/5
(36)
It is a tradition among programmers that the first program you write in any language produces "____" as its output.
(Multiple Choice)
4.9/5
(35)
A Java identifier can contain only letters, digits, ampersands, or number signs.
(True/False)
4.9/5
(40)
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");
(Essay)
4.9/5
(40)
In programming, named computer memory locations are called ____because they hold values that might vary.
(Multiple Choice)
4.8/5
(36)
What is the purpose of the argument "null" in the statement below: JOptionPane.showMessageDialog(null, "Show my message");
(Multiple Choice)
4.9/5
(44)
If a compiler detects a violation of language rules, it refuses to translate the class to ____.
(Multiple Choice)
4.8/5
(36)
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.
(Multiple Choice)
4.9/5
(36)
Match each term with the correct statement below.
Premises:
A low-level programming language
Responses:
inheritance
high-level programming languages
polymorphism
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(37)
Match each term with the correct statement below.
Premises:
The same word can be used in different situations
Responses:
javadoc
attributes
polymorphism
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(35)
Briefly describe the elements of the main() method:
public static void main(String[] args)
{
Java code...
}
(Essay)
4.8/5
(33)
____ comments are a special case of block comments that are used to generate documentation.
(Multiple Choice)
4.7/5
(30)
Showing 41 - 60 of 76
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)