Loyola College Object Oriented Programming With C++ Question Papers
Loyola College B.Sc. Computer Science Nov 2008 Object Oriented Programming With C++ Question Paper PDF Download
LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
|
B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE
THIRD SEMESTER – November 2008
CS 3502 – OBJECT ORIENTED PROGRAMMING WITH C++
Date : 06-11-08 Dept. No. Max. : 100 Marks
Time : 9:00 – 12:00
Part – A
Answer ALL the questions (10 x 2 = 20 marks)
- What is the use of a static data member?
- Define an object.
- What is meant by pure virtual functions?
- Write the syntax of template.
- What is meant by Inheritance?
- List the operators that cannot be overloaded.
- Mention the use of Scope resolution operator.
- Define Polymorphism.
- What is the purpose of using catch statement?
- What are the types of templates?
Part – B
Answer ALL the questions (8 x 5 = 40 marks)
- (a) Distinguish between Class and Structure.
(or)
(b) Analyse the following code with respect to syntax and semantics:
Class C
{
intx; const int y; public: C(int a, int b)
{x=a; y=b}
};
- (a) What are copy constructors and explain their need? Compare copy constructor and operator
function=() by defining a string class with these functions.
(or)
(b) (i) When copy constructors are available why we require to overload=operator
in C++? Give an example.
(ii) Whether assignment operator is over loadable with friend function? Justify.
- (a) (i) Distinguish between early binding and late binding.
(ii) Explain how dynamic binding has been implemented in C++ with a program segment.
(or)
(b) What are the various parameter passing mechanisms supported by C++? Explain with
example.
- (a) If a derived class is to contain the public and protected members if its base class as protected
members, which access specifier must be used?
(or)
(b) Why is it important to ‘inline’ only small functions?
- (a) Explain function prototype with example.
(or)
(b) Explain user defined exceptions with example.
Part – C
Answer any TWO questions (2 x 20 = 40 marks)
- (a) Write a program to simulate a banking system in which the initial balance, acc_no, acc_type,
cust_name are read from keyboard. Provide the following methods.
- To make a deposit
- To withdraw an amount
- To know the balance
(b) Give the syntax of hierarchical inheritance.
- (a) What are the rules for overloading operators?
(or)
(b) Design an object oriented system for a Student Information System.
- (a) Explain class Templates and its types with example.
(or)
(b) With appropriate examples, Compare procedural, object oriented and Generic programming.
Loyola College B.Sc. Computer Science Nov 2010 Object Oriented Programming With C++ Question Paper PDF Download
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)
Loyola College B.Sc. Computer Science April 2012 Object Oriented Programming With C++ Question Paper PDF Download
LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE
THIRD SEMESTER – APRIL 2012
CS 3502 – OBJECT ORIENTED PROGRAMMING WITH C++
Date : 24-04-2012 Dept. No. Max. : 100 Marks
Time : 9:00 – 12:00
PART- A
Answer all the questions: (10×2=20 Marks)
- Define Friend function.
- List out the C++ tokens.
- What is a constructor?
- What is the use of Dynamic constructor?
- Differentiate overloading and overriding.
- Define pointers.
- What is a stream class?
- Give the use of input and output stream.
- Define class template.
- List out the Keyword used for handling exceptions.
PART-B
Answer all the questions: (5×8=40 marks)
- a) Benefits of object oriented programming.
(or)
- b) Explain pure virtual function with example.
- a) Write a C++ program to find the area of rectangle & square using constructor and
destructor.
(or)
- b) Write about Multiple constructors with an example.
- a) Explain about various types of inheritance with suitable example.
(or)
- b) Explain the use of ‘This’ pointer with an example.
- a) Explain about I/O stream classes in C++.
(or)
- b) Discuss about the various modes a file can be opened in C++.
- a) Explain about Function templates.
(or)
- b) Write a C++ program using function template to find the maximum among two number in
integer, float & double.
PART-C
Answer any TWO questions: (2×20=40 Marks)
- a) Explain the basic concepts of object oriented programming language in detail.
- b) Write a C++ program to calculate the Fibonacci series using class.
- a) Explain the types of constructor with an example.
- b) Write a C++ program to calculate the net pay using constructor & destructor.
- a) Explain in detail about exception handling with suitable example.
- b) Explain class templates with an example.
Loyola College B.Sc. Computer Science Nov 2012 Object Oriented Programming With C++ Question Paper PDF Download
LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE
THIRD SEMESTER – NOVEMBER 2012
CS 3502 – OBJECT ORIENTED PROGRAMMING WITH C++
Date : 02/11/2012 Dept. No. Max. : 100 Marks
Time : 9:00 – 12:00
PART – A
Answer ALL questions: (10 x 2 = 20 marks)
- What is object-oriented programming?
- List the keywords associated with exception handling.
- What do you mean by virtual function?
- Define Constructor.
- What is friend function.
- List the different file opening modes in C++.
- Define Exception handling.
- Define Polymorphism.
- List any four formatted I/O operations in C++.
- What is the use of seekg() and tellg() functions?
PART – B
Answer ALL questions: (5 x 8 = 40 marks)
- a) Explain the use of inline functions with an example.
(OR)
- b) Explain about static member functions.
- a) List out the rules of overloading operators.
(OR)
- b) Write about multilevel inheritance in detail.
- a) Compare the member functions and constructors.
(OR)
- b) Explain the differences between constructors and destructors.
- a) Explain the Exception handling in C++.
(OR)
- b) Explain virtual base classes.
- a) Explain unformatted I/O stream in C++
(OR)
- b) Write a C++ program to sort n numbers using templates.
PART – C
Answer any TWO questions: (2 x 20 = 40 marks)
- Explain the Control structures in C++.
- a) Write about constructors in derived classes.
- b) Explain operator overloading with an example.
- a) Explain object oriented features in detail.
- b) Explain the different types of error occur in file processing.