banner



5.1 2 Exam Wrap Up

Brock University

Final Examination, Winter 2006 Number of Pages: one

Class: COSC 3P40 Number of Students: 21

Date of Examination: April 20, 2006 Number of Hours: 2

Time of Examination: 9:00-11:00 am Instructor: Thou. Winter

Instructions

ane) Place all answers in the examination booklet provided.

ii) You do non have to write import statements when using routines from the

standard Java libraries.

3) You do not have to annotate your lawmaking.

4) The paper totals xl marks. The marks for each question are indicated on the

left (due east.1000. [ten]) and the breakdown within the question in italics (eastward.g. (two) ).

five) No examination aids, specifically no electronic devices including

calculators and electronic dictionaries, are permitted. Utilize or possession of

unauthorized materials will automatically result in an award of aught for

this examination (FHB 5.one.2.A).

vi) A marker of 40% must be achieved on this test in order to obtain a

passing grade in the course.

Reply all four questions.

[10] 1. Choose one of the following Design Control, Compositeast or Decorator. For the chosen

blueprint, describe the problem the pattern addresses(2), give an example of the employ of the

pattern for a problem (you may include a class diagram)(iv) and describe how the pattern

solves the problem (you lot may usdue east a classouthward diagram of the model)(4) .

[10] 2. What is meant by a lock of an object and past method synchronization in Java(two) ? How are

locks affected past the methods look() and notify()(4) ? Explain how to use the methods

wait() and notify() to communicate/cooperateastward among threads (y'all may useastward an

case) (4).

[10] 3. a) What is the major differencdue east between AWT and Swing components(i) ?

b) Explicate the AWT effect model, i.due east., explain what happens when a physical input event

such as a key stroke or a mouse movement occurs(2) .

c) Explicate the paint-repaint mechanism of a container(2). What is the advantage of

this approach(one), and when should you utilize it(i) ?

d) What is meant past active rendering(one) ? What is the advantage of this approach(1) and

when should you use it(one) ?

[10] 4. Compare the classesouth and the functionality provided by thursdayeastward Java API NIO and the

combination of the packages java.io and coffee.net(vi). Explain how to establish a

connection using the latter approach(4) .

5.1 2 Exam Wrap Up,

Source: https://www.studocu.com/co/document/brock-university/advanced-object-oriented-programming/2-exam-2008-questions/1238602

Posted by: allencouray.blogspot.com

0 Response to "5.1 2 Exam Wrap Up"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel