Semester : SEMESTER 4
Subject : Object Oriented Techniques
Year : 2020
Term : SEPTEMBER
Branch : INFORMATION TECHNOLOGY
Scheme : 2015 Full Time
Course Code : IT 204
Page:2
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
0)
೩)
0)
0)
020001T202052001
PART تا
Answer any two questions, each carries 15 marks
What are various types of inheritance? Give the syntax of each.
Differentiate between inheriting a class with public and private visibility mode.
Explain array of pointers and pointer to an array using examples.
Define runtime memory management? What support is provided by C++ for
runtime memory management and how does it defers from C’s memory
management.
Design a class STUDENT with data member roll_no and name. Derive two
classes TEST and SPORTS from STUDENT. Marks scored in six subjects are
class. RESULT class is derived from TEST and SPORTS. Total mark is
calculated based on TEST marks and SPORTS mark. Write a program to
model the above relation.
Write a C++ program for sorting names of persons by swapping pointers
instead of data.
PART ட
Answer any two questions, each carries 20 marks
Compare assignment and copy initialization operators with example. How can
we prohibit copying using assignment operator?
Describe error status bits and functions of error flags.
Write a short note on exceptions with arguments.
Describe Rethrowing an exception with the help of a program.
Write a C++ program that instantiates a function template to implement
Insertion Sort on array of objects.
Explain File 1/0 with member functions using an example program.
Write a program for matrix multiplication. The matrix multiplication function
should notify if the order of matrix is invalid using exceptions.
Differentiate between (i) function template and template function
(ii) class template and template class
Page 2 of 2
10
10