Search Header Logo

6CSN-Q3

Authored by RAVIKANTH K

Computers

Professional Development

Used 2+ times

6CSN-Q3
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

Where are the following four methods commonly used?

1) public void add(Component c)
2) public void setSize(int width,int height)
3) public void setLayout(LayoutManager m)
4) public void setVisible(boolean)

Graphics class

Component class

Both A & B

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many types of events are there?

2

3

4

11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Implement the Listener interface and overrides its methods is required to perform in event handling.

Yes

No

Sir din't teach

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfield etc?

Window

Frame

Panel

Container

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the paint method in a component?

To handle mouse clicks on the component

To render graphics on the component using the Graphics object

To add components to the container

To update the layout of the container

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to draw a string in the Graphics class?

drawString(String str, int x, int y)

paintString(String str, int x, int y)

writeString(String str, int x, int y)

text(String str, int x, int y)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which object is sent as parameter to setColor(_______)

Graphics a

Color c

Frame f

None

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?