0% found this document useful (0 votes)
6 views2 pages

P17IS36

This document outlines the structure and content of the Semester End Examination for the Third Semester B.E. in Information Science and Engineering at P.E.S. College of Engineering. It includes details about the examination format, with Part A consisting of compulsory questions and Part B requiring answers to selected sub-questions from various units. The topics covered include Object Oriented Programming concepts in C++ and Java, such as function overloading, memory management, dynamic polymorphism, class templates, and Java features.

Uploaded by

mp4248728
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

P17IS36

This document outlines the structure and content of the Semester End Examination for the Third Semester B.E. in Information Science and Engineering at P.E.S. College of Engineering. It includes details about the examination format, with Part A consisting of compulsory questions and Part B requiring answers to selected sub-questions from various units. The topics covered include Object Oriented Programming concepts in C++ and Java, such as function overloading, memory management, dynamic polymorphism, class templates, and Java features.

Uploaded by

mp4248728
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

P17IS36 Page No...

1
U.S.N

P.E.S. College of Engineering, Mandya - 571 401


(An Autonomous Institution affiliated to VTU, Belagavi)
Third Semester, B.E. - Information Science and Engineering
Semester End Examination; March - 2021
Object Oriented Programming with C++ and Java
Time: 3 hrs Max. Marks: 100
Note: I) PART - A is compulsory. Two marks for each question.
II) PART - B: Answer any Two sub questions (from a, b, c) for Maximum of 18 marks from each unit.
Q. No. Questions Marks
I : PART - A 10
I a. State the purpose of reference variable? Give an example. 2
b. How does inheritance influence the size and functionality of derived class objects? 2
c. Differentiate between virtual destructors and virtual constructors. 2
d. Define binary file and give an example. 2
e. State the purpose of “this” keyword used in Java. 2
II : PART - B 90
UNIT - I 18
1 a. Define function prototyping and write its general syntax. Why should default values are to
9
be given to function argument in the function prototype? Explain with an example.
b. Explain the following with a C++ program:
i) Function overloading 9
ii) Inline function
c. Demonstrate the following with a C++ program:
i) Passing objects to functions 9
ii) Returning objects from functions
UNIT - II 18
2 a. Illustrate how “new” and “delete” operators manage the memory allocation / de-allocation
9
dynamically with a C++ program?
b. Explain the following with a C++ program:
i) Zero argument constructor 9
ii) Parameterized constructor
c. Write a C++ program to create a class called STUDENT with data members USN, Name
and Age. Using inheritance, create the class called UGSTUDENT having fields a
9
semester, fees and stipend. Enter the data for at least 5 students. Find the average age of
all UG students.

Contd… 2
P17IS36 Page No... 2
UNIT - III 18
3 a. Define dynamic polymorphism and discuss how dynamic polymorphism is achieved using
9
virtual functions with an example?
b. With a C++ program, explain how we can overload the Increment and Decrement
9
operators (Prefix and Postfix)?
c. Write a C++ program to create a class called STACK using an array of integers.
Implement the following operations by overloading the operators ‘+’ and ‘- -’:
i) s1 = s1 + element; where s1 is an object of the class STACK and element is an integer
to be pushed on the top of the stack 9
ii) s1 = s1--; where s1 is an object of the class STACK, ‘- -’ operator pops the element.
Handle the STACK empty and full conditions. Also display the contents of the stack after
each operation, by overloading the << operator.
UNIT - IV 18
4 a. With a neat diagram, explain the library classes that handle streams. 9
b. What are class templates? What is the need for class templates? How are they created?
9
Create a template for bubble sort function.
c. Explain the C-Style solution for handling errors with examples. 9
UNIT - V 18
5 a. List out the features of Java and explain any three features. 9
b. List different types of iteration statements in Java and discuss the process of building and
9
running a Java application program.
c. Write a Java program to perform the subtraction of two complex numbers by using the
method sub( ) by passing object as a parameter and display the result using method
9
display( ). Initialize the real and imaginary values of the complex number using
parameterized constructor.

***

You might also like