LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE
THIRD SEMESTER – NOVEMBER 2010
CS 3502 – OBJECT ORIENTED PROGRAMMING WITH C++
Date : 30-10-10 Dept. No. Max. : 100 Marks
Time : 9:00 – 12:00
PART – A
Answer ALL the Questions (10 x 2 = 20 marks)
- What is meant by Data encapsulation?
- What are friend functions?
- Define Class.
- Define Destructor.
- What is operator overloading?
- Define virtual function.
- Write the use Input Stream and Output Stream.
- What are streams?
- Define Templates.
- Define asynchronous exceptions.
PART – B
Answer ALL the Questions (5 x 8 = 40 marks)
- a) Explain about Inline functions with suitable example.
(Or)
- b) Explain Control Structures in C++ with suitable examples.
- a) Explain the concept of Dynamic Constructor with a sample program.
(Or)
- b) Explain Constructor with Default arguments with a sample program.
- a) Explain inheritance and its types with an example.
(Or)
- b) Explain the concept of polymorphism with an example.
- a) Explain about the unformatted I/O Operation.
(Or)
- b) Explain File stream operations in C++.
- a) Write a short notes on Class Templates with an example.
(Or)
- b) Explain the concept of Catching Mechanism.
PART – C
Answer any TWO Questions (2 x 20 = 40 marks)
- a) Explain the concepts of OOPS in detail. (10 marks)
- b) Explain in detail about the constructor and destructor with sample program. (10 marks)
- a) Describe in detail about Operator overloading with an example. (10 marks)
- b) Explain in detail about the formatted console I/O operations. (10 marks)
- a). Explain in detail about Function Templates with a sample C++ program. (10marks)
- b) Explain in detail about Exception handling with suitable examples. (10marks)
Latest Govt Job & Exam Updates: