How To Exam?

a knowledge trading engine...


Birla Institute of Technology (BIT Mesra) 2004 MS Software Engineering Object Oriented Programming(open book) - Question Paper

Saturday, 19 January 2013 05:50Web

Birla Institute of Technology and Science, Pilani
Distance Learning Programmes Division
MS Software Engineering in Collaboration with Wipro Technologies
Second Semester 2003 – 2004
Comprehensive exam
Regular
Course No. : SEWPZC432
Course Name : Object Oriented Programming
Nature of examination : Open book examination
weightage : 60 %
Duration : 3Hours No of pages : 3
Date : July 25,2004 No. of questions : 13

Note: Attempt all ques.. begin every ans from a fresh page

1. Explain the difference ranging from runtime and compile time polymorphism? (4)

2. List a few of the important points to keep in mind when overloading constructors/methods? (4)

3. What Is Multiple Inheritance? Does Multiple Inheritance pose any additional difficulties? (4)

4. Briefly define Encapsulation and Polymorphism with an Example? (4)

5. Explain briefly the meaning of the term "Association" in Object Orientation? (4)

6. Explain briefly, the Composite trend with your own example? (4)

7. What is Inheritance? discuss with an example? Also mention the benefits of Inheritance. (4)

8. What is an abstract class and how is it various from an interface? (4)

9. Explain briefly, the Adapter trend with your own example? (4)

10. What is a design pattern? (4)

11. discuss the Iterator trend with your own example? (4)

12. Explain the Decorator trend with your own example? (4)

13. Read the requirement specification provided beneath and perform the following:

1. Identify the candidate list of classes and their responsibilities (4)
2. Develop CRC Cards (4)
3. Draw a Class Diagram (4)

Requirements Statement for Example ATM System
The software to be designed will control a simulated automated teller machine (ATM) having a magnetic stripe learner for studying an ATM card, a customer console (keyboard and display) for interaction with the customer, a slot for depositing envelopes, a dispenser for cash (in multiples of $20), a printer for printing customer receipts, and a key-operated switch to allow an operator to begin or stop the machine. The ATM will communicate with the bank's computer over an improper communication link. (The software on the latter is not part of the requirements for this issue.)
The ATM will service 1 customer at a time. A customer will be needed to insert an ATM card and enter a personal identification number (PIN) - both of which will be sent to the bank for validation as part of every transaction. The customer will then be able to perform 1 or more transactions. The card will be retained in the machine until the customer shows that he/she desires no further transactions, at which point it will be returned - other than as noted beneath.
The ATM must be able to give the subsequent services to the customer:
a. A customer must be able to make a cash withdrawal from any suitable account linked to the card, in multiples of $20.00. Approval must be found from the bank before cash is dispensed.
b. A customer must be able to make a deposit to any account linked to the card, consisting of cash and/or checks in an envelope. The customer will enter the amount of the deposit into the ATM, subject to manual verification when the envelope is removed from the machine by an operator. Approval must be found from the bank before physically accepting the envelope.
c. A customer must be able to make a transfer of money ranging from any 2 accounts linked to the card.
d. A customer must be able to make a balance inquiry of any account linked to the card.
e. A customer must be able to abort a transaction in progress by pressing the Cancel key instead of responding to a request from the machine.
The ATM will communicate every transaction to the bank and find verification that it was allowed by the bank. Ordinarily, a transaction will be considered complete by the bank once it has been approved. In the case of a deposit, a 2nd message will be sent to the bank indicating that the customer has deposited the envelope. (If the customer fails to deposit the envelope within the timeout period, or presses cancel instead, no 2nd message will be sent to the bank and the deposit will not be credited to the customer.)
If the bank determines that the customer's PIN is invalid, the customer will be needed to re-enter the PIN before a transaction can proceed. If the customer is unable to successfully enter the PIN after 3 tries, the card will be permanently retained by the machine, and the customer will have to contact the bank to get it back.
If a transaction fails for any cause other than an invalid PIN, the ATM will display an explanation of the problem, and will then ask the customer whether he/she wants to do a different transaction.
The ATM will give the customer with a printed receipt for every successful transaction, showing the date, time, machine location, kind of transaction, account(s), amount, and ending and available balance(s) of the affected account ("to" account for transfers).
The ATM will have a key-operated switch that will allow an operator to begin and stop the servicing of customers. After turning the switch to the "on" position, the operator will be needed to verify and enter the total cash on hand. The machine can only be turned off when it is not servicing a customer. When the switch is moved to the "off" position, the machine will shut down, so that the operator may remove deposit envelopes and reload the machine with cash, blank receipts, etc.
The ATM will also maintain an internal log of transactions to facilitate resolving ambiguities arising from a hardware failure in the middle of a transaction. Entries will be made in the log when the ATM is started up and shut down, for every message sent to the Bank (along with the response back, if 1 is expected), for the dispensing of cash, and for the receiving of an envelope. Log entries may contain card numbers and dollar amounts, but for security will never contain a PIN.




---------------------------------



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Birla Institute of Technology (BIT Mesra) 2004 MS Software Engineering Object Oriented Programming(open book) - Question Paper