OOP_Final Exam

OOP_Final Exam

University

25 Qs

quiz-placeholder

Similar activities

C# . NET - II MCA

C# . NET - II MCA

University

22 Qs

BBA(IC) 2ND SESSIONAL

BBA(IC) 2ND SESSIONAL

University

20 Qs

MS WORD - CHAPTER 6

MS WORD - CHAPTER 6

University

20 Qs

Internet & World Wide Web -GEN175

Internet & World Wide Web -GEN175

12th Grade - University

20 Qs

Kuis Flutter dan Widget

Kuis Flutter dan Widget

11th Grade - University

20 Qs

Joins and Set operators

Joins and Set operators

University

20 Qs

Computer Hardware

Computer Hardware

University

20 Qs

INFO MNGT MIDTERM EXAM P4

INFO MNGT MIDTERM EXAM P4

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?