SPPU Information Technology (Semester 3)
Problem Solving and Object Oriented Programming
December 2016
Problem Solving and Object Oriented Programming
December 2016
Solve any one question from Q.1(a,b) & Q.2(a,b)
1(a)
Define function. What are the various types of functions? Explain any one function in detail.
6 M
1(b)
Write a solution to the problem of finding the largest number out of five numbers. Develop algorithm, flowchart, interactivity chart and input-output chart.
6 M
2(a)
What is the difference between and expression and equation? Evaluate the following for the values A =5, B=2, C=True, D=False ( Include the structure of the order of processing)
i) R = A +3 > B - 1 AND C OR D
ii) R = NOT C OR D OR A - 3 > = B.
i) R = A +3 > B - 1 AND C OR D
ii) R = NOT C OR D OR A - 3 > = B.
6 M
2(b)
Explain with flowchart concept of:
i) While/WhileEnd
ii) Repeat Until.
i) While/WhileEnd
ii) Repeat Until.
6 M
Solve any one question from Q.3(a,b,c) & Q.4(a,b,c)
3(a)
Differentiate between Procedural Oriented Programming and Object Oriented Programming.
4 M
3(b)
What is static data member and static member function?
4 M
3(c)
Write a C++ program to overload unary operator minus (-).
4 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.
4 M
4(b)
Write a C++ program to calculate the area of circle and traingle using function overloading.
4 M
4(c)
Explain the syntax of operator overloading using friend function.
4 M
Solve any one question from Q.5(a,b,c) & Q.6(a,b,c)
5(a)
Write a C++ program to swap two numbers using concept of function template.
6 M
5(b)
Explain virtual function in C++.
4 M
5(c)
What is STL? Explain various components of STL.
3 M
6(a)
Write a C++ program for a function template that returns the maximum of two values.
6 M
6(b)
Write a program in C++ to demnstrate concept of hierarchical inheritance.
4 M
6(c)
What is 'this' pointer?
3 M
Solve any one question from Q.7(a,b,c) & Q.8(a,b,c)
7(a)
Explain the following file manipulation functions with example seekg(), seekp(), and tellp().
6 M
7(b)
Explain exception handling mechanism in C++.
4 M
7(c)
How to catch multiple exceptions?
3 M
8(a)
What are C++ stream classes for console operations? Explain it in detail with the help of diagram.
6 M
8(b)
Explain the following file mode ios::trunk, iso::app, ios::ate, ios::binary.
4 M
8(c)
What is formatted? I/O operation?
3 M
More question papers from Problem Solving and Object Oriented Programming