Total score: 90.00
1.
If a file opened for reading does not exist, which of the following events will occur in
Java?
(a) A NullPointerException will be raised.
(b) A run-time error will occur.
(c) A FileNotFoundException will be raised.
(d) A new file will be created.
Correct answer is
(c)
Your score on this question is:
10.00
Feedback:
See section 3.1.1 in the course notes.
2.
The view part of the Model-View-Controller (MVC) paradigm is the
(a) automatic mechanism by which the user interface is displayed and by which events
are communicated between the model and the controller
(b) way in which the abstract domain knowledge of an application is presented to the
user
(c) list of abstract classes in an application
(d) abstract domain knowledge of an application
Correct answer is
(b)
Your score on this question is:
10.00
Feedback:
See Chapter 16, page 474, in the course textbook.
3.
In Java, the default layout manager for a JFrame component is
(a) GridBagLayout
(b) BorderLayout
(c) FlowLayout
(d) GridLayout