SPPU Computer Engineering (Semester 3)
Object Oriented Programming
May 2014
Total marks: --
Total time: --
(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) Define the following terms
i) Class
ii) Static data member
iii) Inline function
iv) Member access control.
8 M
1 (b) Explain virtual destructor with example,
4 M

2 (a) What is operator overloading? Write a program to overload
i) Operator + for concatenation of two strings
ii) Operator >> for reversing a given string
iii) Operator << for displaying a given string
8 M
2 (b) What is static member function? Give a example for the same.
4 M

Answer any one question from Q3 and Q4
3 (a) Explain following
i) Generic Programming
iii) Early binding and late binding
9 M
3 (b) What are core operating system services?
3 M

4 (a) How to handle multiple exceptions occurred in a program?
5 M
4 (b) What is POSIX_SPAWN ( ) function? How to create a child process using POSIX_SPAWN ( ) function? Explain with example
7 M

Answer any one question from Q5 and Q6
5 (a) Explain following:
i) Hardware thread
ii) Software thread
iii) Hybrid thread
iv) User level thread
8 M
5 (b) Explain contention scope of a thread.
5 M

6 (a) Explain method of thread creation and joining with suitable code.
8 M
6 (b) Explain scheduling policies of a thread.
5 M

Answer any one question from Q7 and Q8
7 (a) Explain different PRAM models with respect to concurrent and exclusive memory access.
5 M
7 (b) Explain following
i) POSIX semaphore
ii) MUTEX semaphore
With their respective operations.
8 M

8 (a) What are MUTEX attribute object functions?
5 M
8 (b) Explain thread strategy approach.
8 M

More question papers from Object Oriented Programming