KEYSTONE GRPUP OF INSTITUTIONS Pre-University Test : ME (3rd Sem ) OOPS Time : 3 hrs.
Q1.
Marks: 80
What is Object oriented programming language? Write the principles behind the OOPs. Explain various features of OOPs with the help of suitable example. OR Explain different basic concepts of Object oriented programming with the help of example i) ii) iii) iv) Message Passing Encapsulation Abstraction Polymorphism
Q2.
Write short note on i) ii) iii) iv) Inline function Overloading Different types of operators Structures and Classes OR What is function overloading? Write a program to find area of rectangle and area of circle using function overloading.
Q3
Write a program code to find product of two matrix. OR What is Friend function? Write a program to illustrate how a friend function can act as a bridge between two classes and how it can be possible to operate an object of two classes simultaneously using this friend function.
Q4.
Discuss stream classes that perform file I/O. Explain different method of organizing the files. OR What do you mean by generic classes and function templates? Explain with the help of suitable example.
Q5
Write short note on following i) Stack and its practical use ii) Priority Queue iii) Linear vs Nonlinear data structures OR What is link list? How it is different from array? Explain different types of link list with example.