Exam 4: More Object Concepts
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
Using Java statements, show how you can use the LocalDate class by using the full path and by using an import statement.
(Essay)
4.8/5
(36)
When you ____________________ methods, you risk creating an ambiguous situation-one in which the compiler cannot determine which method to use.
(Short Answer)
4.8/5
(41)
What does a programmer need to know in order to use two variables with the same name in a class?
(Essay)
4.8/5
(42)
If you want all objects to share a single nonchanging value, then the field is static and ______.
(Multiple Choice)
4.8/5
(32)
An alternative to importing a class is to import an entire package of classes.
(True/False)
4.8/5
(26)
A locally declared variable always ____ another variable with the same name elsewhere in the class.
(Multiple Choice)
4.7/5
(35)
When you properly ____ a method, you can call it providing different argument lists, and the appropriate version of the method executes.
(Multiple Choice)
4.7/5
(34)
It is not necessary to create an instance of the Math class because the constants and methods of the class are ____.
(Multiple Choice)
4.7/5
(46)
Explain why the highlighted statements will result in an illegal action.

(Essay)
4.8/5
(37)
If you give the same name to a class's instance field and to a local method variable, the instance variable overrides the method's local variable.
(True/False)
4.8/5
(40)
The ____ package contains is implicitly imported into Java programs and is the only automatically imported, named package.
(Multiple Choice)
4.8/5
(48)
The Student class above will allow Student information to be constructed in various ways, but is repetitive. How could you use the this reference to reduce the amount of repetitious code and make it less error-prone?

(Essay)
4.8/5
(35)
Explain why it is a problem that the highlighted statements are local variables. How could you fix this problem?

(Essay)
4.8/5
(37)
When you instantiate an object from a class, ____ is reserved for each instance field in the class.
(Multiple Choice)
4.8/5
(34)
A variable comes into existence, or ____, when you declare it.
(Multiple Choice)
4.8/5
(27)
You can overload methods correctly by providing different parameter lists for methods with the same name.
(True/False)
4.7/5
(29)
Explain and describe the this reference. How is the this reference used in each of the above methods?

(Essay)
4.9/5
(35)
When they have the same name, variables within ____ of a class override the class's fields.
(Multiple Choice)
4.9/5
(42)
public class StudentScores
{
private int ScoreOne;
private int ScoreTwo;
private int ScoreThree;
____
____
____
____
____
}
Suppose you want to assign all students a score of 95 on the third test. Using the code above, fill in the blank lines provided to create a two-parameter constructor that will require parameters for the first and second test score data fields, and will assign a value of 95 to the third test score data field. Be sure to include the necessary brackets and semicolons.
(Essay)
4.9/5
(42)
Showing 41 - 60 of 66
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)