Exam 7: Object-Oriented Programming, Part 2: User-Defined Classes
Exam 1: Introduction to Programming and the Java Language47 Questions
Exam 2: Programming Building Blocks- Java Basics57 Questions
Exam 3: Object-Oriented Programming, Part 1: Using Classes62 Questions
Exam 4: Introduction to Graphical Applications57 Questions
Exam 5: Flow of Control, Part 1: Selection68 Questions
Exam 6: Flow of Control, Part 2: Looping67 Questions
Exam 7: Object-Oriented Programming, Part 2: User-Defined Classes78 Questions
Exam 8: Single-Dimensional Arrays63 Questions
Exam 9: Multidimensional Arrays and the Arraylist Class62 Questions
Exam 10: Object-Oriented Programming, Part 3: Inheritance, Polymorphism, and Interfaces61 Questions
Exam 11: Exceptions, and Input Output Operations77 Questions
Exam 12: Graphical User Interfaces Using Java FX89 Questions
Exam 13: Recursion59 Questions
Exam 14: An Introduction to Data Structures69 Questions
Exam 15: Running Time Analysis56 Questions
Exam 16: RGB Colors, Decimal Conversion, Java Naming, and Random Number Generation110 Questions
Select questions type
Which of the following statements regarding the default initial value of instance variables byte and boolean is correct?
(Multiple Choice)
4.9/5
(40)
Name duplication is when a file with the same name as a file you are trying to use already exists.
(True/False)
4.8/5
(39)
The enum functionality is built into java.lang, so we must use an import statement to define enum types.
(True/False)
4.8/5
(40)
If the return type of the method is void, as in main, there is no need for a return statement. Given that control automatically returns to the caller when the end of the method is reached, most programmers omit the return statement in void methods.
(True/False)
4.9/5
(33)
A _____________ is a collection of related classes that can be imported into programs.
(Multiple Choice)
4.9/5
(29)
How does a method know for which object the method was called?
(Multiple Choice)
4.8/5
(37)
Which of the following is not one of the criteria for a well-defined class?
(Multiple Choice)
4.8/5
(51)
Declaring a variable with the same name as the parameter of a method inside the method body will not have any effect.
(True/False)
4.9/5
(39)
What is an advantage of returning the reference this for several methods-for example, mutators?
(Short Answer)
4.8/5
(35)
In the class header public class TV, public is the access modifier and TV is the name of the class.
(True/False)
4.7/5
(33)
Methods that are defined to be non-static are subject to which of the following important restrictions?
(Multiple Choice)
4.7/5
(38)
Showing 21 - 40 of 78
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)