1.
Which Swing layout manager uses a grid, but allows selected grid locations to span multiple rows or columns?
I GridBagLayout
II BorderLayout
III GridLayout
2.
What is the best first step in picking the layout managers for a set of nested panels?
| a.use multiple panels with FlowLayout managers |
| b.construct a set of JPanel objects |
| c.use a single panel with a GridBagLayout manager |
| d.make a sketch of the layout |
3.
In an online job application, applicants have to submit a cover letter by typing it into a given text box. Which Swing component would be most appropriate for this text box?
4.
Which of the following would be an appropriate use of radio buttons when ordering a pizza?
5.
A complex GUI can be created with a set of nested containers. What should determine the components that go into a single container?
| a.the adjacency of the components |
| b.the size of the components |
| c.the names of the components |
6.
In Swing, what is the general purpose container normally used at each level of a hierarchy of components and other containers, with layouts at each level?
| c.Containers aren't normally nested |