CSL203 OOP Lab Continuous Assessment  Viva Cycle5

CSL203 OOP Lab Continuous Assessment Viva Cycle5

University

10 Qs

quiz-placeholder

Similar activities

QUIZ 7 PBO

QUIZ 7 PBO

University

10 Qs

V1 unit 3 and 4Quiz

V1 unit 3 and 4Quiz

University

10 Qs

NP Lab exam (12/11/20)

NP Lab exam (12/11/20)

University

10 Qs

INTERNET CONNECTIONS

INTERNET CONNECTIONS

University

10 Qs

Chapter 5 Java swing , small Apps

Chapter 5 Java swing , small Apps

University

10 Qs

data list control

data list control

University

10 Qs

Java-Swing

Java-Swing

University

10 Qs

OOP Semifinal Quiz IS2C

OOP Semifinal Quiz IS2C

University

15 Qs

CSL203 OOP Lab Continuous Assessment  Viva Cycle5

CSL203 OOP Lab Continuous Assessment Viva Cycle5

Assessment

Quiz

Computers

University

Medium

Created by

Sajith B

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Java Event Delegation Model, what is the role of the event source?

Listens for events

Fires events

Handles events

Processes events

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, which method is invoked when an action event occurs?

doAction()

actionPerformed()

onEvent()

handleAction()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the addActionListener method in Java event handling?

To remove an action listener

To add an action event

To register an action listener for a component

To handle keyboard events

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When using setBounds for a component in Java Swing, what parameters does it typically take?

setBounds(x, y, width)

setBounds(x, y, width, height)

setBounds(width, height, x, y)

setBounds(x, y, height, width)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of setLayout(null) in Java Swing?

It removes all components from the container.

It sets the default layout manager for the container.

It enables absolute positioning of components using setBounds.

It aligns components in a flow layout.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to clear the text content of a JTextField?

clearText()

resetText()

setText("")

clear()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to use components like JLabel and JButton, which package would you import?

java.awt

java.awt.event

javax.swing

java.swing.event

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?