1) Which is the container that doesn't contain title bar and MenuBars. It can have other components like button, textfield etc?
A) Window
B) Frame
C) Panel
D) Container
2) How many types of controls does AWT supports these controls are subclasses of component?
A) 7
B) 6
C) 5
D) 8
3) Which are passive controls that do not support any interaction with the user?
A) Choice
B) List
C) Labels
D) Checkbox
4) By which method You can set or change the text in a Label?
A) setText()
B) getText()
C) Both A & B
D) None of the above
5) Which class is used to create a pop-up list of items from which the user may choose?
A) List
B) Choice
C) Labels
D) Checkbox
6) Which object can be constructed to show any number of choices in the visible window?
A) Labels
B) Choice
C) List
D) Checkbox
7) Which class is used for this Processing Method processActionEvent( )?
A) Button,List,MenuItem
B) Button,Checkbox,Choice
C) Scrollbar,Component,Button
D) None of the above
8) The Swing Component classes that are used in Encapsulates a mutually exclusive set of buttons?
A) AbstractButton
B) ButtonGroup
C) JButton
D) ImageIcon
9) Which is used to store data and partial results, as well as to perform dynamic linking, return values for methods, and dispatch exceptions?
A) Window
B) Panel
C) Frame
D) Container
10) The following way is used to create a frame is by creating the object of Frame class?
A) inheritance
B) association
C) Both A & B
D) None of the above
11) AWT more powerful components like tables, lists, scroll panes, color chooser, tabbed pane etc.?
A) True
B) False
12) In Graphics class Which method is used to set the graphics current color to the specified color?
A) public abstract void setFont(Font font)
B) public abstract void setColor(Color c)
C) public abstract void drawString(String str, int x, int y)
D) None of the above
13) These four methods commonly used in?
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)
A) Graphics class
B) Component class
C) Both A & B
D) None of the above
14) In Graphics class which method is used to draws a rectangle with the specified width and height?
A) public void drawRect(int x, int y, int width, int height)
B) public abstract void fillRect(int x, int y, int width, int height)
C) public abstract void drawLine(int x1, int y1, int x2, int y2)
D) public abstract void drawOval(int x, int y, int width, int height)
15) Implement the Listener interface and overrides its methods is required to perform in event handling?
A) True
B) False
16) The Java Foundation Classes (JFC) is a set of GUI components which simplify the development of desktop applications?
A) True
B) False
A) Window
B) Frame
C) Panel
D) Container
2) How many types of controls does AWT supports these controls are subclasses of component?
A) 7
B) 6
C) 5
D) 8
3) Which are passive controls that do not support any interaction with the user?
A) Choice
B) List
C) Labels
D) Checkbox
4) By which method You can set or change the text in a Label?
A) setText()
B) getText()
C) Both A & B
D) None of the above
5) Which class is used to create a pop-up list of items from which the user may choose?
A) List
B) Choice
C) Labels
D) Checkbox
6) Which object can be constructed to show any number of choices in the visible window?
A) Labels
B) Choice
C) List
D) Checkbox
7) Which class is used for this Processing Method processActionEvent( )?
A) Button,List,MenuItem
B) Button,Checkbox,Choice
C) Scrollbar,Component,Button
D) None of the above
8) The Swing Component classes that are used in Encapsulates a mutually exclusive set of buttons?
A) AbstractButton
B) ButtonGroup
C) JButton
D) ImageIcon
9) Which is used to store data and partial results, as well as to perform dynamic linking, return values for methods, and dispatch exceptions?
A) Window
B) Panel
C) Frame
D) Container
10) The following way is used to create a frame is by creating the object of Frame class?
A) inheritance
B) association
C) Both A & B
D) None of the above
11) AWT more powerful components like tables, lists, scroll panes, color chooser, tabbed pane etc.?
A) True
B) False
12) In Graphics class Which method is used to set the graphics current color to the specified color?
A) public abstract void setFont(Font font)
B) public abstract void setColor(Color c)
C) public abstract void drawString(String str, int x, int y)
D) None of the above
13) These four methods commonly used in?
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)
A) Graphics class
B) Component class
C) Both A & B
D) None of the above
14) In Graphics class which method is used to draws a rectangle with the specified width and height?
A) public void drawRect(int x, int y, int width, int height)
B) public abstract void fillRect(int x, int y, int width, int height)
C) public abstract void drawLine(int x1, int y1, int x2, int y2)
D) public abstract void drawOval(int x, int y, int width, int height)
15) Implement the Listener interface and overrides its methods is required to perform in event handling?
A) True
B) False
16) The Java Foundation Classes (JFC) is a set of GUI components which simplify the development of desktop applications?
A) True
B) False
is checkbox is not used for the processing method processactionevent()
ReplyDeleteSo helpful 😊
ReplyDelete11) AWT more powerful components like tables, lists, scroll panes, color chooser, tabbed pane etc.?
ReplyDeleteA) True
B) False
It'll be false cause Swing is used for that not AWT has all these components!
Yes, Swing introduced all this advanced components
DeleteThis comment has been removed by a blog administrator.
ReplyDelete