Exam 1: Creating Java Programs
Exam 1: Creating Java Programs61 Questions
Exam 2: Using Data67 Questions
Exam 3: Using Methods Classes and Objects66 Questions
Exam 4: More Object Concepts66 Questions
Exam 5: Making Decisions66 Questions
Exam 6: Looping66 Questions
Exam 7: Characters Strings and the Stringbuilder68 Questions
Exam 8: Arrays66 Questions
Exam 9: Advanced Array Concepts66 Questions
Exam 10: Introduction to Inheritance66 Questions
Exam 11: Advanced Inheritance Concepts66 Questions
Exam 12: Exception Handling66 Questions
Exam 13: File Input and Output66 Questions
Exam 14: Introduction to Swing Components66 Questions
Exam 15: Advanced Gui Topics66 Questions
Exam 16: Graphics66 Questions
Select questions type
Regarding code layout, write the following Java code using a common alternate placement of the first curly brace:
public static void main(String[] args)
{
System.out.println("First Java application");
}
(Essay)
4.9/5
(92)
JOptionPane.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?
(Essay)
4.8/5
(80)
A program written in ____ is the most basic circuitry-level language.
(Multiple Choice)
4.8/5
(86)
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?
(Multiple Choice)
4.9/5
(77)
Why is creating a GUI environment for users a natural use for object orientation?
(Essay)
4.8/5
(74)
A(n) ____________________ error occurs when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it.
(Short Answer)
4.7/5
(76)
After a successful compile, you can run the class file on any computer that has a ____.
(Multiple Choice)
4.8/5
(68)
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
(80)
public class First {
public static void main(String[] args)
{
System.out.println("First Java application");
}
}
Given the above code, which item identifies the method's return type?
(Multiple Choice)
4.9/5
(103)
When you run a Java application using the ____ command, do not add the .class extension to the filename.
(Multiple Choice)
4.9/5
(71)
If you modify a class, what are the steps you must take to see your changes in the executing program?
(Essay)
4.9/5
(77)
System software is used for tasks such as word processing, calculations and playing games.
(True/False)
4.9/5
(86)
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.
(Multiple Choice)
4.9/5
(71)
Provide examples of logic errors. How do programmers minimize logic errors in their code?
(Essay)
4.8/5
(81)
A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class.
(Multiple Choice)
4.9/5
(84)
Match each term with the correct statement below.
Correct Answer:
Premises:
Responses:
(Matching)
5.0/5
(81)
What are some of the reasons the javac command might not be recognized?
(Essay)
4.9/5
(61)
In Java, whitespace is optional but useful. Describe why and how whitespace can be used in coding?
(Essay)
4.8/5
(95)
Showing 41 - 60 of 61
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)