How To Exam?

a knowledge trading engine...


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

Saturday, 19 January 2013 05:10Web

Birla Institute of Technology and Science, Pilani
Distance Learning Programmes Division
MS Software Engineering in Collaboration with Wipro Technologies
Second Semester 2003 – 2004
Mid semester
Regular
Course No. : SEWPZC432
Course Name : Object Oriented Programming
Nature of examination : Closed Book examination
weightage : 40 %
Duration : 2Hours No of pages : 2
Date : May 15, 2004 (AN) No. of questions : 8

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

1. Write an efficient function to check if a provided String is a Palindrome? (5)

2. What relationship is improper ranging from the subsequent classes: Aggregation and Inheritance or neither? (5)
• University and learner
• Student and TeachingAssistant
• Student and Freshman
• Student and Professor
• Car and Door
• Truck and Vehicle
• Traffic and TrafficSign
• TrafficSign and Color

3. When sorting a collection of objects that implements the Comparable type, the sorting method compares and rearranges the objects. discuss the role of polymorphism in this situation? (5)

4. Implement the method: public static Object minimum(ArrayList a, Comparator c)
Which computes the minimum element in the array list . presume that the elements of the array list implement the Comparable interface kind and the list is not empty. Document the preconditions. (5)

5. Explain the two various uses of the super keyword? How can you tell when super is used to invoke a constructor? (5)

6. Explain why methods of a subclass cannot throw more checked exceptions than the super class method that it replaces. (5)

7. A typical implementation of a Stack will involve extending an ArrayList or LinkedList? Is it possible to implement a Stack using Aggregation instead of Inheritance? If so, then prototype it and implement the methods isEmpty(), push(), pop(). Suggest modifications to your implementation if it had to be used in a multi threaded situation. (5)

8. A stream reads bytes whereas a learner reads characters. For this reason, we use InputStreamReader class to learn characters from System.in. Can you see a Decorator trend in use? cause out your ans. (5)




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




( 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(closed book) - Question Paper