13) Which of the following GUI components would you use to allow the user to move the view
of the components within the container?
A) JComboBox
B) JList
C) JSlider
D) JScrollPane
E) JOptionPane
14) Which of the following is a listener class for a JSlider?
A) ListListener
B) ActionListener
C) ButtonListener
D) ChangeListener
E) SlideListener
15) Assume that x is a GUI component from the javax.swing library. The instruction
x.getValue( ) returns the value selected by the user from component x where x would be of
which specific swing class?
A) JComboBox
B) JList
C) JSlider
D) JButton
E) all of the above
16) What are the main programming mechanisms that constitute object-oriented programming?
A) encapsulation, inheritance, polymorphism
B) encapsulation, abstraction, inheritance
C) inheritance, polymorphism, recursion
D) polymorphism, recursion, abstraction
E) none of the above