









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Total no. of Questions ā 100
a. Swing b. AWT c. Core java d. None of these
a. Client server b. Model view controller c. layered d. None of these
a. True b. False
a. True b. False
a. A b. S c. G d. J
a. Polymorphism b. Class c. Inheritance d. Object
a. AbstractButton b. JToggleButton c. JComponent d. None of these
a. JComboBox b. JTextArea c. JSlider d. All of the above
a. Component b. Window c. Container
c. JButton d. ImageIcon
a. setPosition b. setBounds c. setSize d. none of these
a. 1 is true and 2 is false b. 1 is false and 2 is true c. I & 2 both are false d. 1 & 2 both are true
a. Scrollbar is component and scrollpane is container b. Scrollbar is container and scrollpane is component c. Scrollbar and scrollpane both are components and not containers d. Scrollbar and scrollpane both are containers and not components
a. True b. False
a. Window b. Frame c. Dialog d. All of the above
a. Button b. Textfield c. Label d. List
a. Flowlayout b. Gridlayout c. Border layout d. Gridbag layout
a. Model version control b. Model view controller c. Mini view controller d. Major view controller
a. True b. False
a. Model b. View
a. Table b. Tabbed pane c. Both a & b d. None of these
Ans ā Swing
Ans - import javax.swing.*
Ans ā Japplet
a. ImageInsert Class b. ImageIcon class c. PutImage class d. None of these
Ans ā 5 pixels
a. Table b. JTable c. YTable d. All of these
a. addItem() b. getItem() c. both a & b d. none of these
Ans ā Applet
a. AbstractButton b. RadioButton c. CheckBoxItem d. None of these
a. Java.awt b. Java.swing c. Javax.swing d. None of these
a. Java.awt b. Java.swing c. Javax.swing d. None of these
a. SwingFrame b. Frame c. Window d. None of these
a. SwingFrame b. Frame c. Window d. JFrame
Ans ā Swing
Ans ā Jcomponent
a. Light weight b. Platform independent c. Both a & b d. None of these
a. AWT b. Swing c. Both a & b d. None of these
a. True b. False
a. AWT supports limited number of GUI components b. The AWT component is converted by the native code of the operating system. c. Swings components can have tooltip placed over them. d. All of these
Ans ā it is the responsibility of JVM to invoke the native methods.
a. JCheckBox b. JToggleButton c. Both a & b d. None of these
a. 3 b. 1 c. 2 d. 4
Ans - f.setForeground (Color.YELLOW)
Ans - new ImageIcon("c:\image\us.gif");
a) JFrame b) JTree c) JComboBox d) JTable
a) JFrame b) JTree c) JComboBox d) JTable
a) Label , TextField b) Label , Checkbox c) Both a & b d) None of these
Ans ā JcomboBox
a) FlowLayout b) BorderLayout c) GridLayout d) CardLayout
a) addTab b) insertTab c) putTab d) none of these
a) setDefaultCloseOperation() b) setCloseOperation() c) closeFrame() d) none of these
a) JTree b) JComboBox c) iframe d) JTable
a) JMenuBar b) Canvas c) JCheckBox d) JTree
a) Void SetStringPainted(Boolean status) b) Void setStringColored(Boolean status) c) Void setValue(int) d) Void setString(string s)
Ans ā Boolean
a) Void SetStringPainted(Boolean status) b) Void setStringColored(Boolean status) c) Void setValue(int value) d) Void setString(string s)
Ans ā Thread.sleep(1000);
a) Model view center b) Medium view controller c) Model View Controller d) None of these
a) Model b) View
c) Controller d) None of these
a) Model b) View c) Controller d) None of these
a) Model b) View c) Controller d) None of these