OOP_Final Exam

OOP_Final Exam

University

25 Qs

quiz-placeholder

Similar activities

Algoritma Pemrograman

Algoritma Pemrograman

University

20 Qs

3D Objects - Terms & Transfomations

3D Objects - Terms & Transfomations

6th Grade - Professional Development

20 Qs

4-2 final QUIZ in ELEC4

4-2 final QUIZ in ELEC4

University

20 Qs

1.1.3 Input, output and storage

1.1.3 Input, output and storage

11th Grade - University

22 Qs

MODERN TECHNOLOGIES

MODERN TECHNOLOGIES

University

20 Qs

Digital and Analog transmission

Digital and Analog transmission

University

20 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Quiz Harian Gdevelop MPK

Quiz Harian Gdevelop MPK

University

20 Qs

OOP_Final Exam

OOP_Final Exam

Assessment

Quiz

Computers

University

Medium

Created by

Mel Bautista

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

Already have an account?

Discover more resources for Computers