Gujarat Technological UniversitySummer 2026 examination

GTU 3160922 Object Oriented Programming Summer 2026 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
Explain “for” loop with proper example in C++.
(b)
4 marks
Differentiate between object oriented and procedure-oriented methodology.
(c)
7 marks

What is object-oriented programing? What are the advantages of an object- oriented programing paradigm?

Q.2

14 Marks
(a)
3 marks
Explain merits and demerits of inline functions.
(b)
4 marks

Explain the difference between structure and class in C++ with suitable example

(c)
7 marks
Explain basic to class type conversion with appropriate example.
(c)
7 marks
Explain the use of C++ operators with example: new and delete.

Q.3

14 Marks
(a)
3 marks
Explain friend function with suitable example.
(b)
4 marks
Explain the execution of virtual function to achieve runtime polymorphism.
(c)
7 marks
Write a program in C++ to swap the values of a pair of integers.
(a)
3 marks
Explain static member function with suitable example.
(b)
4 marks
Explain different types of constructors.
(c)
7 marks

What do you mean by call by value and call by reference? Justify your answer with suitable example.

Q.4

14 Marks
(a)
3 marks
Describe the use of "this" pointer with an example.
(b)
4 marks
Explain arrays of objects.
(c)
7 marks
Write a C++ program that overloads + operator to add two complex numbers.
(a)
3 marks
When do we use the protected visibility specifier to a class member?
(b)
4 marks
Enlist the rules for overloading operators.
(c)
7 marks

Explain various forms of inheritance with suitable diagrams and example of each.

Q.5

14 Marks
(a)
3 marks
Describe the syntax and use of set( ) function with suitable example.
(b)
4 marks
Describe different ways to open file with suitable example.
(c)
7 marks
Explain different stream classes for console I/O operations in C++.
(a)
3 marks

Describe the various approaches by which we can detect the end of file condition.

(b)
4 marks
What is STL? How is it different from the C++ Standard library?
(c)
7 marks

Explain Exception Handling Mechanism. Write a program that demonstrates use of multiple catch.

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 2026, 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