SPPU Information Technology (Semester 3)
Problem Solving and Object Oriented Programming
December 2014
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


Answer any one question from Q1 and Q2
1 (a) Write a solution to the problem of finding the largest number out of three numbers. Develop algorithm, flowchart, interactivity chart, input-output chart. Also list down three advantages of algorithm and flowchart.
6 M
1 (b) List down major types of modules and explain their functions with example.
6 M

2 (a) Give three numbers as an input, print their sum and product. Develop the solution to this problem using sequential logic structure.
6 M
2 (b) What is decision logic structure? How do you use a decision table? Explain with example.
6 M

Answer any one question from Q3 and Q4
3 (a) What is meant by an ordered array? Write an algorithm to remove duplicate elements from an ordered array.
6 M
3 (b) Write an algorithm for linear search and array order reversal.
6 M

4 (a) Write a program in C++ for creating array of student object (for 150 students). Create class student with data members as Roll Number, Name, Address, mobile number and member functions as get data and display data. Define member function outside class.
6 M
4 (b) Differentiate between Procedural Oriented Programming and Object-oriented Programming.
6 M

Answer any one question from Q5 and Q6
5 (a) What is static data member and static member function ? Write its properties.
7 M
5 (b) What are rules for operator overloading? List the operators which cannot be overloaded. List the operators which cannot be overloaded by using friend function.
6 M

6 (a) Write a program in C++ to overload unary '-' operator using friend function.
7 M
6 (b) Explain constructor and destructor in inheritance. Write a program to demonstrate how constructor and destructor are invoked in multilevel inheritance.
6 M

Answer any one question from Q7 and Q8
7 (a) What is exception handling mechanism in C++ ? Write a program in C++ to handle 'divide by zero' exception.
7 M
7 (b) Write a note on Sequence Container, Associative Container and Derived Container.
6 M

8 (a) Write a program in C++ for bubble sort using function template.
7 M
8 (b) Write a note on RTTI.
6 M



More question papers from Problem Solving and Object Oriented Programming
SPONSORED ADVERTISEMENTS