Sei sulla pagina 1di 7

CS504 (ALL SOLVED CURRENT PAPERS)

Q#01:
Suppose you want to develop the object Model of a Hospital system. Identify and write down
any five classes that will be used in object Model of Hospital System. (5 Marks)
Answer:
1. Doctor
2. Patient
3. Rooms
4. Department
5. Bill
Q#02:
The attributes have relationship among them to perform the functionality of the system. Identify
which types of relationship exist among objects? (5 Marks)
Answer:
Inheritance, association and aggregation are the three inter-object relationships specified by the
object model.
1. Inheritance defines a “kind of” hierarchy among classes.
2. In an association relationship, when objects A “uses” object B, then A may send
messages to B. The relationship defines visibility among objects.
3. The aggregation relationship defines part-of structure among objects. When object A is
part of the state of object B, A is said to be contained by B.
Q#03:
While identifying structure in object model derivation, there are three steps involved. Mention
those steps. (3 Marks)
Answer:

1. Define Attributes - What I Know?


2. Show Collaborations (associations and aggregations) - Who I know?
3. Define Services - What I do?

Q#04:
Ali is considers as an object. What are the characters its which decide Ali is an object.
Answer:
Ali have random characteristics like ali is person ali his skills ali is employee ali house.....
Q#05:
Which of the following is/are True about software design?
a. Common coupling occurs when some global data repository is shared by two or more
modules.
b. Polymorphism is a design principle that helps the code to be flexible and reused.
c. Software reuse injects more reliability to code.
d. Stepwise refinement refers to increasing the level of detail of the design

Q#06:
Define Container Objects. Give an example and name any two attributes. (2 Marks)
Answer:
Containers are objects that hold other objects.
e.g. bin, box, cabinet, folder, locker

Q#07:
“Users should be able to access their mails using their correct username and password”
Above mentioned requirement is functional or non-functional?
Answer:
Non-functional

Q#08:
Apply peter code methodology on virtual university of Pakistan and identify actors, participants,
places, transactions and tangible things.
In peter coad methodology for Virtual University of Pakistan. (write actors, participants, places,
transactions and tangible things
Answer
Actors:
person
Attributes: name, address, phone

Participants:
teacher
Attributes: number, ID, education level, name, age
Services: record result , make paper , teaching

Places:
room
Attributes: name, width
Tangible things:
PC
Attributes: number, prices, model
Q#09:
Suppose there are two modules A and B, they interact with each other through massage
passing. This is an example of high coupling or low coupling? (2)
Answer:
The modules that interact with each other through message passing have low coupling

Q#10:
Which techniques can be used to avoid ambiguity, uncertainty and vagueness from user
requirements? Write any two. (2 marks)
Answer: (not cnfrm)
One to one
One to many
Many to many

Q#11:
Assembly-line, depot, hanger, plant, region, sales outlet etc are examples of which category as
per Peter Coad methodology?
Answer:
Select places.

Q#12: Consider the following class diagram:


Relationship btanay thay in ka
1. Customer and Rental Invoice
2. Rental Items and rental Invoice
3. rental Items and DVD movies
4. Rental Invoice and Checkout Screen
Answer:
1. Aggregation
2. Composition
3. Inheritance

Q#13:
What parameters are used to measure and analyze design quality?
Answer:
Parameters include efficiency, compactness, reusability and maintainability.
Q#14:
In UML a ‘class’ notation has 3 parts. Write 3 names.
Answer:
1. Association
2. Aggregation
3. Composition

Q#15:
In textual analysis we analyze the text to identify the class, object & relationships, among objects
and classes. What are the meanings of these term in textual analysis.
1. Proper noun
2. Improper noun
3. Being verb
4. Having verb
Answer:

Q#16:
Provide any two examples attribute that may be expected in ‘student’ object.
Answer: (not confirm)
s_Name
s_Id
s_PhNo

Q#17:
“A manufacturing company assembles the fans. For this purpose it purchases the raw material
containing wires, motors, wings, and magnets. It then assembles the fans from these products”.
From above case study, identify different objects that, you think, should be present in final
implementation of system.
Note: you can use any methodology to identify the objects.
Answer:

Q#18:
Write three activities for Architectural design process?
Answer:
1. System structuring
2. Control modeling
3. Modular decomposition.

Potrebbero piacerti anche