
CSL203 OOP Lab Continuous Assessment Viva Cycle5

Quiz
•
Computers
•
University
•
Medium
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
Similar Resources on Wayground
10 questions
Programación Orientada a Objetos

Quiz
•
University
10 questions
Chapter 5 Java swing , small Apps

Quiz
•
University
15 questions
Brewing JavaFX Quiz

Quiz
•
University
12 questions
Semis

Quiz
•
University
10 questions
V1 unit 3 and 4Quiz

Quiz
•
University
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
15 questions
Mobile Application Development Quiz1

Quiz
•
University
15 questions
Quiz Android 1

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade