OOP_Final Exam
Quiz
•
Computers
•
University
•
Medium
Mel Bautista
Used 8+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Social Issues and Professional Practices Midterm Exam
Quiz
•
University
20 questions
TEST FINAL - Configuración de Servicios Windows
Quiz
•
University
20 questions
Technical Quiz R1
Quiz
•
University
20 questions
Infrastructure (Network)
Quiz
•
University
20 questions
C Quest 2.0
Quiz
•
University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
20 questions
quizz tkinter
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
