SPPU Computer Engineering (Semester 3)
Object Oriented Programming
December 2015
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


Solve any one question from Q1 and Q2
1 (a) Explain the following terms with example:
i) Copy constructor
ii) Manipulator
iii) Static data members
iv) This pointer.
8 M
1 (b) With suitable examples, demonstrate the benefits of Operator Overloading.
4 M

2 (a) Explain why add when do we use protected Instead of Private? With suitable examples, explain different types of inheritance.
8 M
2 (b) Explain run-time polymorphism with a suitable example.
4 M

Solve any one question from Q3 and Q4
3 (a) What are the core services of an OS? Describe process state transition diagram.
8 M
3 (b) What do you mean by Unformatted Console I/O Functions? What is the use of the following Unformatted Console I/O Functions?
i) Getch()
ii) Putchar()
iii) Get()
iv) Put()
4 M

4 (a) What is C++ template? Describe type template parameters and non-type template parameters.
8 M
4 (b) What is Process and Thread? How mapping of multiple threads on multiple cores takes place?
4 M

Solve any one question from Q5 and Q6
5 (a) What is deadlock? What are different conditions that must be true for deadlock to happen?
9 M
5 (b) Differentiate between pre-emptive scheduling and time slicing.
4 M

6 (a) Explain the different attributes of the pthread_attr_t object which can be modified by the creator of the thread.
9 M
6 (b) Write a short note on thread interface classes.
4 M

Solve any one question from Q7 and Q8
7 (a) With suitable terminologies the following terminologies:
i) Task synchronization
ii) Critical section
iii) Semaphore
iv) Message Passing.
8 M
7 (b) What do you mean by Thread safety? With reference to Thread safety, what do you mean by conditionally safe and Not thread safe code?
5 M

8 (a) Explain interprocess Communication (IPC) and explain any two ways of implementing IPC.
9 M
8 (b) Explain the use of read-write-locks to prevent race conditions and deadlocks.
4 M



More question papers from Object Oriented Programming
SPONSORED ADVERTISEMENTS