Exam 2: Using Objects
Exam 1: Introduction98 Questions
Exam 2: Using Objects76 Questions
Exam 3: Implementing Classes103 Questions
Exam 4: Fundamental Data Types125 Questions
Exam 5: Decisions120 Questions
Exam 6: Loops128 Questions
Exam 7: Arrays and Array Lists118 Questions
Exam 8: Designing Classes95 Questions
Exam 9: Inheritance101 Questions
Exam 10: Interfaces85 Questions
Exam 11: Inputoutput and Exception Handling109 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion110 Questions
Exam 14: Sorting and Searching109 Questions
Exam 15: The Java Collections Framework110 Questions
Exam 16: Basic Data Structures104 Questions
Exam 17: Tree Structures110 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Graphical User Interfaces76 Questions
Exam 20: Streams and Binary Inputoutput82 Questions
Exam 21: Multithreading82 Questions
Exam 22: Internet Networking74 Questions
Exam 23: Relational Databases75 Questions
Exam 24: XML74 Questions
Exam 25: Web Applications75 Questions
Select questions type
Which method checks whether a point lies within the rectangle?
(Multiple Choice)
4.9/5
(37)
Based on the following code, which of the following statements sets the frame to a width of 400 and a height of 200: final int FRAME_WIDTH = 400;
Final int FRAME_HEIGHT = 200;
JFrame frame = new JFrame();
(Multiple Choice)
4.8/5
(23)
Complete the following statement, which constructs an ellipse. Ellipse2D.Double ellipse =
New ____________________ (x, y, width, height);
(Multiple Choice)
4.8/5
(24)
Place drawing instructions inside the __________ method, which is called whenever the component needs to be repainted.
(Multiple Choice)
4.8/5
(37)
Which of the following represents a method declaration with a void return type?
(Multiple Choice)
4.8/5
(28)
Which of the following statements about classes is correct?
(Multiple Choice)
4.9/5
(36)
Complete this code fragment to ensure that the frame is shown: JFrame frame = new JFrame();
(Multiple Choice)
4.8/5
(42)
What is the output of the following code:
Int num1 = 6;
Int num2 = 10;
num1 = num2;
num2 = num1;
System.out.println(num1 + ", " + num2);
(Multiple Choice)
4.9/5
(47)
Which statement declares a variable that references a Circle of radius 3?
(Multiple Choice)
4.8/5
(37)
Assuming the following Java statement:
Int num = 10;
What does the variable num store?
(Multiple Choice)
4.7/5
(36)
Which import statement allows for the use of the Rectangle class?
(Multiple Choice)
4.8/5
(38)
Which statement declares a variable that will store an integer value?
(Multiple Choice)
4.7/5
(38)
Which of the following statements about methods is correct?
(Multiple Choice)
4.8/5
(37)
What is the nickname for the graphical user interface library in Java?
(Multiple Choice)
4.9/5
(37)
Showing 41 - 60 of 76
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)