You are on page 1of 2

QP SET-A

ACAD/F/EXAM/01
Rev: 00 Date: 11/12/2017
Sanjivani K.B.P. Polytechnic, Kopargaon
CLASS TEST QUESTION PAPER
Academic Year: 2019-20 CM5I
Program: Computer Technology Class & Div: CM5I-A
Course: Advance Java Programming (AJP) Course Code: 22517
Name of Faculty: Mr. S. B. Jadhav Marks: 20 Time: 1 Hour
Name of Student: Roll No:
Name & Sign of Invigilator

1. Which class can be used to represent the Checkbox with a textual label that can
appear in a menu?
A. MenuBar B. MenuItem
C. CheckboxMenuItem D. Menu
2. Which are various AWT controls from following?
A. Labels, Push buttons, Check boxes, Choice lists.
B. Text components, Threads, Strings, Servelts, Vectors
C. Labels, Strings, JSP, Netbeans, Sockets
D. Push buttons, Servelts, Notepad, JSP
3. JPanel and Applet use ___________________ as their default layout
A. FlowLayout B. GridLayout
C. BorderLayout D. GridBagLayout
4. Which of the following is true about AWT and Swing Component?
A. AWT Components create a process where as Swing Component create a thread
B. AWT Components create a thread where as Swing Component create a process
C. Both AWT and Swing Component create a process
D. Both AWT and Swing Component create a thread
5. Which of these methods cannot be called on JLabel object?
A. setIcon() B. getText()
C. setLabel() D. setBorderLayout()
6. _____________ pane can be used to add component to container
A. Glass B. Content
C. Container D. All of above
7. Which of the following is not a constructor of JTree
A. JTree(Object obj[]) B. JTree(TreeNodetn)
C. JTree(Vector v) D. JTree(int x)
8. Swing Components are_______________________
A. Platform dependent B. Platform Independent
C. Both a & b D. Platform oriented
9. A label is a simple control which is used to display_____________ on the window:
A. Text(non-editable) B. Text(editable)
C. Both A&B D. None of these
10. In swing MVC architecture, c stands for:
A. Controller B. Container
C. Class D. None of this
11. BorderLayout does not support this value of alignment…
A. BorderLayout.WEST B. BorderLayout.EAST
C. BorderLayout.NORTH D. BorderLayout.MIDDLE
12. Is it possible to change display character of TextField? How?
A. Not possible.
B. Yes, by using setChar( ) method.
C. Yes, by using setEchoChar( ) method.
D. Yes, by using setDisplayChar( ) method.
13. What is default block-increment of Scrollbar?
A. 10 B. 5
C. 1 D.We can not use block increment in scrollbars.
14. Multiple selections are allowed in…
A. Menu B. CheckboxGroup
C. List D. Choice
15. The immediate super class of TextArea is…
A. TextField B. TextBox
C. TextComponent D. Component
16. The CardLayout class defines the following constructors:
A. CardLayout() // First CardLayout(int hor, int ver) //second
B. Cardlayout() // First CardLayout(int hour, int ver) //second
C. CardLayout() // First Cardlayout(int hor, int var) //second
D. CardLayout() // First Cardlayout(int hour, int ver) //second
17. The constructor JCheckBox(true, “YES”) suggests that –
A. Checkbox is selected and displays the string “YES” on it.
B. Checkbox is deselected and displays the string “YES” on it.
C. Checkbox is selected and it shows the tick always on it.
D. There is no such constructor.
18. Which of the following constants shows scroll bars always?
A. HORIZONTAL_SCROLLBAR_ALWAYS
B. HORIZONTAL_SCROLLBAR_AS_NEEDED
C. HORIZONTAL_SCROLLBARS
D. HORIZONTAL_ALWAYS
19. What is the return type of getText( ) method of JButton class?
A. void B. String
C. Character array D. There is no such method
20. FlowLayout does not support this value of alignment…
A. FlowLayout.LEFT B. FlowLayout.CENTER
C. FlowLayout.RIGHT D. FlowLayout.BASELINE

You might also like