Gujarat Technological UniversitySummer 2025 examination

GTU 3160922 Object Oriented Programming Summer 2025 Question Paper & PDF

B.E. · Electrical Engineering · Semester 6 · Subject code 3160922
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 10:30 AM – 1:00 PM
Questions
5 with internal choice
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

Q.1

14 Marks
(a)
3 marks
Discuss arithmetic operators in C++ programing.
(b)
4 marks

What is namespace? What is “namespace std” explain it in detail and also elaborate the concept by creating your own namespace.

(c)
7 marks

Enlist Distinguishing features of Object-oriented programing, and justify any two of the features.

Q.2

14 Marks
(a)
3 marks
Classify IO Stream Library
(b)
4 marks
Give the applications of any one Manipulators in file operation
(c)
7 marks

Explain New and delete operator, along with sample program. Also differentiate it with C language equivalent implementation.

(c)
7 marks

Distinguish between the following terms: (a) Objects and classes, (b) Data abstraction and data encapsulation, (c) Inheritance and polymorphism, (d) Dynamic binding and message passing

Q.3

14 Marks
(a)
3 marks
Explain static data member and static member function. With a suitable program code?
(b)
4 marks
What is friend function? Explain with a suitable example.
(c)
7 marks
Write a program using C++ which calculates squares of all even number,
(a)
3 marks
Discuss the application of Destructors and give example for the same.
(b)
4 marks
Explain function call by value, call by pointer and call by reference.
(c)
7 marks

What do you mean by function prototype, function call, function arguments and function returntype.

Q.4

14 Marks
(a)
3 marks
Discuss the concept of data encapsulation using a program of C++ .
(b)
4 marks
Explain virtual funtions.
(c)
7 marks

Write a program using C++ exhibiting constructors usage for initializing volume paramters and function polymorphism for calculating volume of cube, cylinder, and rectangular box.

(a)
3 marks
What is friend function? Explain with a suitable example.
(b)
4 marks
What do you mean by inheritance ? Give classification for the same.
(c)
7 marks
Explaing single level inheritance using a C++ program.

Q.5

14 Marks
(a)
3 marks
Explain pointer with example.
(b)
4 marks
Write down the rules for implementing operator overloading.
(c)
7 marks

Define a class to represent a GTU student account. include the following Data members:

1Name of the Student.
2Enrollment number.
3Gender
4Mobile Number.
5Marks of 5 subjects

Member functions:

1To assign initial value to 1st four data members.
2To display the marks of particular student.
3To display full details of the students along with the marks. Also write a main function to test the program.
(a)
3 marks
List various access specifiers of C++ language, and explain all of them in short
(b)
4 marks
Explain the exception handling of C++ language.
(c)
7 marks

Write a program in C++ for addition of two time frames given in HH:MM:SS stored in objects t1 and t2 respectively and t3 saves the result.

More Object Oriented Programming papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper for Object Oriented Programming (Summer 2025, B.E. · Electrical Engineering, Sem 6). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

ViewDownload PDF