6CSN-Q3

6CSN-Q3

Professional Development

10 Qs

quiz-placeholder

Similar activities

print, input, type data, variable

print, input, type data, variable

Professional Development

11 Qs

PythonTest

PythonTest

6th Grade - Professional Development

11 Qs

Strings and Arrays

Strings and Arrays

Professional Development

13 Qs

Linked List

Linked List

Professional Development

15 Qs

MS EXCEL & CANVA

MS EXCEL & CANVA

University - Professional Development

15 Qs

квиз нг

квиз нг

Professional Development

12 Qs

Python quiz

Python quiz

University - Professional Development

10 Qs

JavaScript

JavaScript

Professional Development

11 Qs

6CSN-Q3

6CSN-Q3

Assessment

Quiz

Computers

Professional Development

Hard

Created by

RAVIKANTH K

Used 2+ times

FREE Resource

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

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?