35.ICS 2201OOP II - Paper I
35.ICS 2201OOP II - Paper I
Question ONE
(a) Explain the following concepts of object oriented programming
i. Applet (2marks)
ii. Event (2marks)
iii. Object (2marks)
iv. Class (2marks)
v. Message passing (2marks)
(b) Explain the role of the following JDK tools. Use an appropriate example to demonstrate how they are
used in command line environment.
i. Java Compiler (3marks)
ii. Java interpreter (3marks)
iii. Java Debugger (3marks)
add(lst);
}
}
Question FOUR
(a) State any four characteristics of a good user interface. (4marks)
(b) Given below is user form for login user in a web site, Write the code that implements the interface as
given below.
(10marks)
(c) Using example, explain the function of the following layout managers on user interface components.
i. Flow layout
ii. Grid layout (6marks)
Question FIVE
(a) Differentiate:
(i). Call by value and call by reference (4 Marks)
(ii). Static variable and instance variable (4 Marks)
(b) Write a program that accepts marks for four subjects, computes the average and awards an order of merit
based on the average mark using the following classification.