OOP_Final Exam

OOP_Final Exam

University

25 Qs

quiz-placeholder

Similar activities

Tkinter Quiz

Tkinter Quiz

University

20 Qs

mobile application development no 2

mobile application development no 2

University

24 Qs

LAB INTERNET AND WEB TECHNOLOGIES QUIZ

LAB INTERNET AND WEB TECHNOLOGIES QUIZ

University

20 Qs

Chapter 7 and 8 Test

Chapter 7 and 8 Test

University

20 Qs

Quiz java Swing

Quiz java Swing

University

20 Qs

JAVA WEEK 7-12

JAVA WEEK 7-12

University

25 Qs

Quiz BP1 - JAVA SWING

Quiz BP1 - JAVA SWING

University

25 Qs

MODULE 5

MODULE 5

University

20 Qs

OOP_Final Exam

OOP_Final Exam

Assessment

Quiz

Computers

University

Medium

Created by

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?