lOMoARcPSD|57368375
Ooadjava Final Exam 2017 Question Paper
Computer Systems Engineering (Botswana Accountancy College)
Scan to open on Studocu
Studocu is not sponsored or endorsed by any college or university
Downloaded by Kat Zero (zerokat587@gmail.com)
lOMoARcPSD|57368375
School of Computing and Information Systems
PROGRAMME: BSC. COMPUTER SYSTEMS ENGINEERING
CIS113-OOAD WITH JAVA Year 2 Semester 1
Final Exam
Date: 15/11/2017 Time:
1400hrs
Total Marks: 100
Duration: 2hrs
Instructions to candidates
1. Candidates must attempt ALL questions.
2. Candidates attempting to gain unfair advantage or colluding in any way whatsoever are
liable to be disqualified.
3. Do NOT open the question paper until you are told to do so.
4. Candidates are not allowed to bring any material that may be used to copy, collude or
plagiarize the examinations.
5. Students are not allowed to write on the question paper
Downloaded by Kat Zero (zerokat587@gmail.com)
lOMoARcPSD|57368375
Question 1
a) Explain what the following terms mean in terms of the relational database: [3 marks]
i) Structure ii) Integrity iii) Language
b) List three types of integrity constraints. [3 marks]
c) State what the following JDBC interfaces do: [4 marks]
i) driver
ii) connection
iii) statement
iv) resultset
d) Write code snippets that show the use of driver connection statement and resultset. [8 marks]
e) List six (6) advantages of Object Orientation. [7 marks]
Total [25 marks]
Question 2
Study the following UML diagram below and answer the questions that follow.
a) Write java statements that implements the Person interface. [3 marks]
b) Write a java statement that shows how the interface is related to the Student class. [2 marks]
c) Write code that show the implementation of the method headers of the Person interface. [4 marks]
d) Identify the symbols used in the diagram above. [7 marks]
e) The following are design principles of OOP: Encapsulation, Abstraction, Polymorphism, [5 marks]
Inheritance and Composition. Explain each principle.
f) Name 4 diagrams that form part of UML. [4 marks]
Downloaded by Kat Zero (zerokat587@gmail.com)
lOMoARcPSD|57368375
Total [25 marks]
Question 3
a) Define what a software requirement is. [2 marks]
b) Give an example of a functional requirement of a banking system. [2 marks]
c) Give an example of a non-functional requirement of a banking system. [2 marks]
d) Explain what a UML Activity Diagram models. [2 marks]
e) Identify symbols used for the following in an activity diagram: [6 marks]
Start state, end state, activity. Flow and decision.
f) Describe the following fields using in use case scenario templates: purpose, pre-condition, [6 marks]
post condition, exceptions, priority and frequency.
g) Explain the impact of the final keyword in the code that follows: [2 marks]
final class Math {
...
}
h) Explain the impact of the final keyword in the code that follows: [2 marks]
final static double PI = 3.14159;
i) Identify two categories of methodologies [1 mark]
Total [25 marks]
Downloaded by Kat Zero (zerokat587@gmail.com)
lOMoARcPSD|57368375
Question 4
public class Cube {
int length;
int width;
int height;
}
a) Write code for a zero arg constructor for the above class. [2 marks]
b) Overload the constructor with one that takes three parameters which are used to initialise the [4 marks]
data members. Make use of the keywords this and super.
c) Write code to define a mutator method for one of data members. [2 marks]
d) Write code to define an assessor method for one of the data members. [2 marks]
e) Write code for a method called calculateVolume which calculates the volume of the Cude and [3 marks]
returns it.
f) Define method overriding and support your answer with code that overrides the to String [5 marks]
method for above class.
g) Write a main method that executes all the constructors and methods . [7 marks]
Total [25 marks]
Question 5
a) Describe what an immutable class is. [3 marks]
b) List four activities the occur in the requirements engineering process. [4 marks]
c)
i) Identify the 4 types of GUI components or classes. [4 marks]
ii) Write the actionPerformed method associated with the component labelled Login
that get the data typed in the two input components and displays the values on [4 marks]
the console window.
d) Write short notes about an Interface. [5 marks]
e) Draw a diagram that shows how a database application system is arranged. [4 marks]
f) Explain what database metadata is. [1 mark]
T Total [25 marks]
Downloaded by Kat Zero (zerokat587@gmail.com)
lOMoARcPSD|57368375
End of Exam paper
Downloaded by Kat Zero (zerokat587@gmail.com)