What is the purpose of the line of code:
import java.awt.*;
OOP_Final Exam
Quiz
•
Computers
•
University
•
Medium
Mel Bautista
Used 8+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the line of code:
import java.awt.*;
To allow you to make Random number generators
To use an interface.
To import a package
To allow you to Scan from the terminal or a file.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a method?
An organized and functionally based set of related interfaces and classes
Where we type our code.
A set of group of code that can be called for execution.
An instance of a class
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the lines of code DOES NOT call a method?
frame.setSize()
frame.setVisible(true);
JFrame frame;
frame.setResizable(false);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What code adds this JButton to this JPanel?
JPanel panel = new JPanel();
JButton button = new JButton();
panel.add(button);
button.add(panel);
frame.add(panel);
panel.add(JButton);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How would you change the text of a label to the text contained by an integer named num;
label.setText(num);
label.updateText(num);
label.setTest("num");
label.setText(num+ "");
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What object type handles Java's layouts?
Layout Manager
Layout Scheduler
Layout Operator
Layout Director
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following layouts would be good to use for GUI that resembles picture frame, with a big picture on the inside and little buttons around the outside?
Flow Layout
Border Layout
Grid Layout
Null Layout
20 questions
Ms word Quiz
Quiz
•
University
20 questions
B.I Midterm Exam
Quiz
•
University
25 questions
JAVA WEEK 7-12
Quiz
•
University
25 questions
Quiz BP1 - JAVA SWING
Quiz
•
University
20 questions
Mastering HTML and CSS Concepts
Quiz
•
University
20 questions
Chapter 7 and 8 Test
Quiz
•
University
25 questions
AWT Quiz
Quiz
•
University
20 questions
Understanding CSS in Web Development
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade