Page 1 :
Re rT . 4, , , , Qi, , Q2, , a3, , a4, , Qé, , , , , , , , Give the abbreviation of AWT ?, (a) Applet Windowing Toolkit, (b) Abstract Windowing Toolkit, (c) Absolute Windowing Toolkit, {d) None of the above, , Which is the container that contain title bar and, can have MenuBars, It can have other components, like button, textfield etc.?, , (a) Panel (b) Frame, , (c) Window (d) Container, , Which Is a component in AWT that can contain, another components like buttons, textfields, labels, etc.?, , (a) Window, (c) Panel, , (b) Container, (d) Frame, , AWT is used for GUI programming in java?, (a) True, {b) False, , Which class provides many methods for graphics, programming?, , (a) java.awt, , (b) java,Graphics, , (c) java.awt.Graphics, , (d) None of the above, , These two ways are used to create 2 Frame, , By creating the object of Frame class (association), By extending Frame class (inheritance), , (a) True, , (b) False, , Which is the container that doesn't contain title, bar and MenuBers, It can have other components, like button, textfield etc?, (a) Window, , (b) Frame, (c) Panel, (d) Container, , , , Abstract Windowing Toolkit (AWT), , as, , as, , Q10, , Qil, , Q12, , Q.13, , >, , 4,, , , , , , , , , , , , , , , , , , , , , , , How many types of controls does AWT:, these controls are subclasses of, (a) 7 (b) 6, () 5 (4) 8, Which are passive controls that, Interaction with the user?, {a) Choice, {c) Labels, , , , , , , a Label? ', (a) setText()
Page 2 :
Q.i6, , Qi9, , Q.20, , Q2, , Advanced Java, , TE) M1-2, , These four methods commonly used in?, , () public void add(Component c), , (li) public void setSize{int width,int height), (ii!) public void setLayout(LayoutManager m), (iv) public void setVisible(boolean), , (a) Graphics class, , (b) Component class, , {c) BothaA& B, , (d) None of the above, , 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), , Implement the Listener interface and overrides its, methods is required to perform in event handling?, {a) True (b) False, , Public class MenuBar extends, (a) MenuComponent, , {b) MenuContainer, , (c) ComponentMenu, , (6) MenuBar, , Which of the following is true about AWT and, , Swing components., , (a) AWT components creates a process where as, swing components creates a thread, , (b) AWT components creates a thread where as, swing components creates a process, , (c)_ Both AWT and Swing components creates a, Process, , () Both AWT and swing components creates a, thread, , Panel is defined as, , ta) The Panel cass is a concrete subclass of, Container., , Q22, , Q23, , Q.24, , Q.25, , Q. 26, , az, , , , (b) A Panel is a window that does not contain _, , titlebar, menubar and border,, (c)_ Panel is a superciass of Applet,, {d) All of the above., , , , , , , , , , , , , , , , , , MCQ - Abstract Toolkit, , What is API?, , (a) Application Programming Interchange, (b) Application Programming Interaction, (c) Application Programming Interface, (d) None of these, , What Is default layout for Dialog?, (a) FlowLayout (b) GridLayout, (c) Cardtayout (d) Bordertayout, , Which method Is used to count the number of, items Is the List. ' =, (b), (4), , (a) getitem(), {c) getitemCount( ), , , , , , (c) Component ~ Container — Pane, , (6) Container = Components, , ons
Page 3 :
Q.31 Suppose a Panel is added to a Frame and a Button, is added to the Panel. If the Frame’s font is set to, 12 point Times New Roman, the panel's font is set, 10 points Times New Roman and the Button’s font, is not set. What font will be used to display the, Button’s label?, , (a) 12 point Times New Roman, , (b) 11 point Times New Roman, , (c) 10 point Times New Roman, , (d) 9 point Times New Roman, , Which of the following is true about FlowLayout?, (a) FlowLayout can use multiple rows if the, horizontal space in the container is too small, to hold the component., , FlowLayout is the default layout manager of, panel and applet., , It is the default layout manager for window., Both A & B., , Q39, , Q. 40, , Q. 32, , Q.41, (b), , (), (¢), Which of the method can be used to output a, String in an Applet?, , (a) display(), (c) drawString(), , (b)_print(), (d) transient{), , positions are the components into 5, regions east, west, south, north, center., , (a) Cardlayout (b) BorderLayout, (c) GridLayout (d) FlowLayout, , What is API?, , (a) Application Programming Interchange, (b) Application Programming Interaction, (c) Application Programming Interface, (d) None of these, , Panel is defined as, (a) Panel class is a concrete sub-class of container, , (b) A Panel Is a window that does not contain a, title bar, menu bar or border, , (c)_ Panel is the superclass of Applet, (d) All of above, , Which component of AWT provides compact,, multichoice, scrolling component?, , fa) Ust (b) Choice %, (c) Panel ~ (d) TextArea, , When there is a switching condition like ON or, OFF, which control is used of following? ¢, , a34, , Q.35, , Q. 36, , Q.37, , , , Q.38, , {a) Button (b) RadioButton, (c) ToggleButton {d) TextField, , , , , , , , , , Which method is used to set pass!, for a TextField?, (a) setPasswordCharacter( ), (b) setEchoChar( ), , (c) setPassChar( ), , (d) setEchoCharacter( ), , The getContentPane( ) method isofy, (a) JApplet, (b) JFrame, (c) JButton, (d) None of these «, , Which class defines setSize(), (a) Frame ., (b) Applet, , (c) Component, (d) Panel
Page 5 :
Q.67 The«, , (a), , (b)