0
1.9kviews
Object Oriented Programming Methodology : Question Paper Dec 2013 - Information Technology (Semester 3) | Mumbai University (MU)
1 Answer
0
3views

Object Oriented Programming Methodology - Dec 2013

Information Technology (Semester 3)

TOTAL MARKS: 80
TOTAL TIME: 3 HOURS
(1) Question 1 is compulsory.
(2) Attempt any three from the remaining questions.
(3) Assume data if required.
(4) Figures to the right indicate full marks.
1 (a) Write a Program in Java to find nCr and nPr(5 marks) 1 (b) what are the apllications of wrapper classes? Explain.(5 marks) 1 (c) Write an applet program to draw circle rectangle and line.(5 marks) 1 (d) Write a detail note on system.arryacopy().(5 marks) 2 (a) Assume that bank maintains two kinds of accounts for customers, one called as savings account and the other as current account. The savings accounts provides compound interest and withdrawal facilities but no cheque bbok facility. The current account provides cheque book facility but no interest. current account holders should also maintain a minimum balance and if the balance falls below this level, a services charge is imposed.
Class account stores customer name, account number, and the type of account include members functions :-

  • Accept deposite from a customer and update the balance.
  • Display the balance.
  • Compute and deposite interest
  • Permit withdrawal and update balance.
  • Check for minimum balance, impose penalty and update the balance.

  • Draw class diagram for above senario.(8 marks) 2 (b) For above problem statement, implement class account, current and saving account.(8 marks) 2 (c) Exam association and aggregation with suitable example.(4 marks) 3 (a) Write a program to display area of square and rectangle. Make use of interface to define templetes of methods to be there in the derive classes. (10 marks) 3 (b) with the help of suitable example explain multithreading in terms of following :-
    (i) Creating threads, extending the thread class.
    (ii) Life-cycle of thead.
    (10 marks)
    4 (a) Write a detailed note on exception handling in terms of following:-
    (i) Try-catch
    (ii) Finally Keyword
    (iii) Cathing multiple exception.
    (iv) Throwing exception.
    (10 marks)
    4 (b) Write a java program to find out no. of uppercase and lowercase character, blank space and digits and special characters from string.(10 marks) 5 (a) Write an interactive program to create a vector object and populate in with names of cities. Program should display and implement following menu choices :-
  • Add city : if city name already exists in the vector then programs should display appropriate message.
  • Remove city : If city does not exists in vector then program should display appropriate message.
  • Display all : should display contents of vector.

  • (7 marks)
    5 (b) Compare and contrast overriding method and overloading method with suitable examples.(8 marks) 5 (c) Draw a sequence diagram that show the interaction between caller, customer and credicard for the statement "Customer uses a credit card for doing the payment".(5 marks)


    Write a short notes on (any four) :-

    6 (a) JVM(5 marks) 6 (b) Abstract methods and calsses.(5 marks) 6 (c) Method overloading(5 marks) 6 (d) Package.(5 marks) 6 (e) Static data, member and methods(5 marks) 6 (f) Different between C++ and Java(5 marks)

    Please log in to add an answer.