Msbte News: 22517 Advance Java Programming MCQ PDF
Msbte News: 22517 Advance Java Programming MCQ PDF
a. MenuBar
b. MenuItem
c. CheckboxMenuItem Answer
d. Menu
a. Only i
b. Only ii
c. Both Answer
d. None
3) Which of the following sets the frame, say frame to 300 pixels
wide by 200 high?
4) Which of the following is/ are not related with keyboard event?
a. ClassKeyEvent is used to notify if any key pressed occurs or
not.
b. The KeyListener should be added either in init() or the main
method.
c. RequestFocus should be added either in init() or the main
method.
d. The class InputEvent should be imported explicitly in the
program. Answer
a. javax.swing Answer
b. java.awt
c. java.util
d. Java.applet
a. CardLayout
b. FlowLayout Answer
c. BorderLayout
d. GridLayout
a. CardLayout
b. FlowLayout
c. BorderLayout Answer
d. GridLayout
a. Graphics class
b. Component class Answer
c. Both A & B
d. None of the above
11) Which is the container that doesn't contain title bar and
MenuBars but it can have other components like button, textfield
etc?
a. Window
b. Frame
c. Panel Answer
d. Container
a. Labels
b. Choice
c. List Answer
d. Checkbox
a. setText() Answer
b. getText()
c. All the above
d. None of the above
a. Swing Answer
b. AWT
c. Both A & B
a. True
b. False Answer
a. Type 1
b. Type 2
c. Type 3 Answer
d. Type 4
a. Slow performance
b. Using more memory
c. Using less memory
d. Better performance Answer
25) How many Result sets are available with the JDBC 2.0 core
API?
a. 2
b. 3 Answer
c. 4
d. 5
a. JDBC-Net Answer
b. JDBC-ODBC bridge
c. Native API as basis
d. Native protocol as basis
a. True Answer
b. False
a. True Answer
b. False