E0 257 - Software Architecture

Y. Narahari

Department of Computer Science and Automation
Indian Institute of Science
Bangalore - 560 012
INDIA


FIRST QUIZ, PROBLEMS AND SOLUTIONS

 
 
FIRST QUIZ  August 27, 2002 Time: 30 Minutes
 NAME:  SRNO:  DEPT:

 
1. Provide a definition of the term "Software Architecture" in at most three lines. (3 points)
2. In the context of a banking system, you are given an actor called "customer"; data stores called "bank" and "account"; processes called "create account", "select account", and "updata account." Using these write down two data flow diagrams, one for updating of balance and the second one for creating a new account. Use appropriately defined data flows. (6 points)
(a). DFD for Update Balance
(b).   DFD for Creating a New Account

 
3. Classify the following into  generalization (G), association (A), aggregation (AG), or composition (C): (3 Points)  Answers

(a)  A country has a capital city A/G/C 
(b)  A dining philosopher uses a fork A/G/C 
(c)  A file is an ordinary file or a directory file A/G/C 
(d)  Files contain records  A/G/C 
(e)  A class can have several attributes  A/G/C
(f)  A relation can be association or generalization A/G/C 

 
4. For each following  task, state whether it is relevant for analysis (A) or for design (D) or for both (AD)   (4 Points)  Answers
(a)  Decide a software architecture for the given application
(b)  Choose the window classes for the GUI
(c)  Develop Use Case Diagrams
(d)  Draw a state diagram describing the steps of an algorithm AD 
(e)  Select a data structure D

 
5. It is required to describe a universal automobile that can be fitted with and will run on number of wheels. Try both Inheritance and Composition to do this and say which is better. You should write down the diagrams. (5 points)



BACK TO HOME

 Modified by: Sandhya G & Shijesta Victor on 03.11.2003