Search Header Logo

CSD_Batch-2_AJP_Lab-2 (2025-26)

Authored by HARITHA REDDY

Computers

University

Used 2+ times

CSD_Batch-2_AJP_Lab-2 (2025-26)
AI

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

Which is the container that contain title bar and can have MenuBars. It can have other components like button, textfield etc.?

Panel

Frame

Window

Container

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following statement(s) is/are true about Swing in Java

Swing components are platform-dependent and rely on the native operating system's GUI components.

All Swing components are lightweight and written entirely in Java.

Swing provides a richer set of GUI components than AWT.

JFrame is used only for creating console-based applications.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these packages contains all the classes and methods required for event handling in Java?

java.applet

java.awt

java.event

java.awt.event

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

By which method You can set or change the text in a Label ?

setText()

gettext()

settext()

getText()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

.................................... is a swing class that allows to enter a single line of text.

TextField

JTextField

JEditTextField

JTextArea

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The signature for the registration method for an ActionEvent should be ....................

public void addActionListener(ActionEvent L)

public void setAction(ActionListener L)

public void setActionListener(ActionListener L)

public void addActionListener(ActionListener L)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a method in WindowListener interface?

windowOpened(WindowEvent e)

windowClosing(WindowEvent e)

windowResized(WindowEvent e)

windowIconified(WindowEvent e)

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?