
CSL203 OOP Lab Continuous Assessment Viva Cycle5
Authored by Sajith B
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Microcontroller
Quiz
•
11th Grade - University
12 questions
Data Science Quiz
Quiz
•
University
15 questions
Monday Week#2
Quiz
•
University
10 questions
El Paradigma Orientado a Objetos: Una Introducción Mediante Java
Quiz
•
University
13 questions
مراجعة للتطبيق الثاني تقن105
Quiz
•
University
15 questions
Algoritma dan Pemrograman Bab 1
Quiz
•
University
15 questions
Data Mining
Quiz
•
University
15 questions
Human Computer Interaction (HCI)
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University