0% found this document useful (0 votes)
37 views1 page

OOP Concepts and Programming Test Guide

The document contains 5 questions regarding object-oriented programming concepts for a pre-university test. The questions cover topics like OOP principles, features and concepts with examples; function overloading; matrix multiplication; friend functions; file input/output streams; generic classes; data structures like stacks, priority queues, and linked lists. Students are asked to write code, explain concepts, and provide examples in their responses.

Uploaded by

Bhupender Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views1 page

OOP Concepts and Programming Test Guide

The document contains 5 questions regarding object-oriented programming concepts for a pre-university test. The questions cover topics like OOP principles, features and concepts with examples; function overloading; matrix multiplication; friend functions; file input/output streams; generic classes; data structures like stacks, priority queues, and linked lists. Students are asked to write code, explain concepts, and provide examples in their responses.

Uploaded by

Bhupender Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like