LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
|
M.Sc. DEGREE EXAMINATION – STATISTICS
SECOND SEMESTER – APRIL 2007
ST 2954 – C++ FOR STATISTICAL APPLICATIONS
Date & Time: 24/04/2007 / 1:00 – 4:00 Dept. No. Max. : 100 Marks
Section A
Answer ALL the questions (10×2=20)
- What is Non-Inline member function? Give an example
- Define type casting.
- Discuss the role of delete operator in memory management.
4 What is an exception? Write down the keywords used to handle exceptions in C++.
- What is Early-binding ?
- Explain the significance of new keyword.
- Mention the use of setw and endl manipulators.
- What is meant by data abstraction?
- What is the purpose of scope resolution operator?
Section B
Answer any FIVE questions (5X8=40)
- Explain the chief characteristics of Object Oriented Programming.
12.Discuss the advantage of overriding in Inheritance with an example.
13.. Explain constructor overloading with an example.
- Write a program which overloads the binary operator plus(+) to add any two matrices.
- When do you make a class virtual? Give a suitable example.
- What is a friend function? What are the merits and demerits of using friend functions?
- Write a C++ program to compute the Co-efficient of Variation.
- What is meant by Containership? Explain with examples.
Section C
Answer any TWO questions (2×20=40)
19.[a] Define a class to represent a bank a/c, which include the data members: name, acc_number,
acc_type and balance. Also, define the member functions: i] to assign initial values ii]
Deposit an amount iii] Withdraw an amount after checking the minimum balance of Rs.1000/-
iv] Display the name and balance. Write C++ program to test these member functions.
20 Write a program in C++ to perform analysis of variance in Randomized Block Design.
21.[a] Illustrate with an example ‘passing and returning objects as arguments’ in functions .
[b] Explain the advantages of Polymorphism by giving an example
- Explain different types of inheritance(simple, multiple and multi-level) by giving appropriate
illustrations of your own choice.
Latest Govt Job & Exam Updates: