0% found this document useful (0 votes)
4 views12 pages

Oops

The document outlines examination questions for M.Sc(IT) Integrated Semester II at Gujarat Technological University for Winter and Summer 2024, covering topics in Object-Oriented Programming (OOP) and C++. It includes questions on characteristics of OOP, exception handling, inheritance, templates, and various C++ concepts such as constructors, destructors, and operator overloading. The format consists of multiple questions with sub-parts requiring explanations, examples, and comparisons.

Uploaded by

Richa Patel
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)
4 views12 pages

Oops

The document outlines examination questions for M.Sc(IT) Integrated Semester II at Gujarat Technological University for Winter and Summer 2024, covering topics in Object-Oriented Programming (OOP) and C++. It includes questions on characteristics of OOP, exception handling, inheritance, templates, and various C++ concepts such as constructors, destructors, and operator overloading. The format consists of multiple questions with sub-parts requiring explanations, examples, and comparisons.

Uploaded by

Richa Patel
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/ 12

GUJARAT TECHNOLOGICAL UNIVERSITY

M.SC(IT)- INTEGRATED – SEMESTER II-


EXAMINATION –WINTER-2024

Q.1 (a) List out the basic characteristics of OOP (03)


(b) State the difference between OOP and POP (04)
(c) Explain function overloading with proper example (07)

Q.2 (a) Describe public, private and protected in C++ (03)


(b) Explain reference variable with proper example (04)
(c) What is constructor? Explain all its types (07)

OR

(c) Explain class to class type conversion with proper example


(07)

Q.3 (a) Explain the use of ‘this’ pointer (03)


(b) What is exception handling. Give one simple example of
try..catch block (04)
(c) Explain different types of inheritance with example (07)

OR

Q.3 (a) What is inline function (03)


(b) Write a short no
te on Polymorphism (04)
(c) Explain operator overloading in C++ (07)

Q.4 (a) Explain destructor in detail (03)


(b) Explain the use of scope resolution operator in C++ (04)
(c) Explain class template with proper example (07)

OR

Q.4 (a) List the application of OOP (03)


(b) Write a short note on rethrowing exception in C++ (04)
(c) What is a stream? Describe various stream classes for
console I/O operations in C++. (07)

Q.5 (a) Explain default argument with example (03)


(b) Explain manipulators in C++ (04)
(c) What is template? Explain function templarte. (07)

OR

Q.5 (a) Explain user defined exception in detail (03)


(b) Explain function overriding. (04)
(c) Write a short note on multiple catch exception in C++ (07)
GUJARAT TECHNOLOGICAL UNIVERSITY
M.SC(IT)- INTEGRATED– SEMESTER II-
EXAMINATION –SUMMER-2024

Q.1 (a) Explain access specifier - private and protected (03)


(b) Explain simple exception handling with an example (04)
(c) Explain the principles of OOP (07)

Q.2 (a) What is a template in C++? (03)


(b) Explain Static Data Member with an example (04)
(c) What is a stream? Describe various stream classes. (07)

OR

(c) Explain function overriding with a proper example. (07)

Q.3 (a) Explain the use of scope resolution operator with example
(03)
(b) Explain STL Components. (04)
(c) What is Inheritance? Explain its types with example. (07)

OR
Q.3 (a) Explain inline function with example (03)
(b) Explain the concept of rethrowing exception with example.
(04)
(c) What is Polymorphism? Explain function overloading with
example. (07)

Q.4 (a) Explain default argument in C++. (03)


(b) Give the difference between call by value and call by
reference (04)
(c) What is a Constructor? Explain its types with example. (07)

OR

Q.4 (a) Explain different datatypes of C++. (03)


(b) Explain Virtual Base Class in detail (04)
(c) Explain Operator Overloading in brief (07)

Q.5 (a) Explain this pointer with a program. (03)


(b) Explain reference variable with example (04)
(c) Write the difference between POP and OOP (07)

OR

Q.5 (a) Explain Abstract Class with example (03)


(b) Explain the use of ‘new’ and ‘delete’ operator (04)
(c) Explain Type Conversion with example. (07)
GUJARAT TECHNOLOGICAL UNIVERSITY M.SC
(IT)- INTEGRATED– SEMESTER II- EXAMINATION
–WINTER-2023

Q.1 (a) Difference between procedural oriented programming


languages and object oriented programming. 03
(b) Explain the basic principle of object oriented programming.
04
(c) Distinguish between call by value and call by address with an
example. 07

Q.2 (a) Write about reference variable. 03


(b) Explain different data types in C++. 04
(c) Explain about types of array in C++. 07

OR
(c) Explain about friend function and friend classes. 07

Q.3 (a) How to create classes and objects in C++ with example.
03
(b) Explain the concept of Data abstraction. 04
(c) What is operator overloading? Explain unary and relational
operator overloading. 07

OR
Q.3 (a) Define constant function. 03
(b) Explain about static keyword? 04
(c) Write about i) Method overriding and ii) Virtual functions. 07

Q.4 (a) Write about command – line arguments in C++. 03


(b) Explain about error handling in C++. 04
(c) What is polymorphism in C++. Explain about its types with
example. 07

OR

Q.4 (a) Explain different types of files and file functions. 03


(b) Write about unformatted i/o operations (cin and cout objects).
04
(c) Write a program to find a number is even or not using
conditional operator. 07

Q.5 (a) Discuss the fits of exception handling. 03


(b) Define the Base and Derived classes. 04
(c) Write a program to swap two numbers using reference
variables. 07

OR

Q.5 (a) What do you mean by exception handling? 03


(b) What is copy constructor, explain with example. 04
(c) Write a program for factorial of given number. 07
Winter 2022 paper not found
GUJARAT TECHNOLOGICAL UNIVERSITY M.Sc
Integrated – SEMESTER – II - EXAMINATION –
SUMMER 2022

Q.1 (a) What is difference between Structure and Class in C++?


03
(b) Differentiate Object Oriented Programming (OOP) and
Procedure Oriented Programming (POP). 04
(c) What is Function Prototype? Explain Function overloading
with example. 07

Q.2 (a) Enlist and explain the basic characteristics of OOP. 03


(b) Differentiate the keywords ‘protected’ and ‘public’. 04
(c) Define constructor. Write a program to explain use of copy
constructor. 07

OR

(c) Explain merits and demerits of inline functions. 07

Q.3 (a) Explain visibility mode with its types. 03


(b) Explain Type Conversion with example. 04
(c) Write a program to demonstrate conversion of an object of
one class into an object of another class. 07

OR

Q.3 (a) Explain Destructor with example. 03


(b) Explain Static Data Member with example 04
(c) What is an operator function? Write a program to overload
binary + operator as a member function. 07

Q.4 (a) Explain this pointer with a program. 03


(b) Explain reference variables. 04
(c) Explain different types of Inheritance with example. 07

OR

Q.4 (a) Explain Exception in C++ with example. 03


(b) Explain try, catch and throw. Give one simple example 04
(c) What is a stream? Describe various stream classes for
console I/O operations in C++. 07 Page 2 of 2

Q.5 (a) Explain Scope Resolution Operator (::) with a program. 03


(b) What is an abstract class? What is virtual base class? 04
(c) Write a program for swapping two values of different data
types using template. 07

OR

Q.5 (a) Differentiate call by value and call by reference. 03


(b) Define STL? Differentiate it with C++ standard library. 04
(c) Explain the mechanism of keywords try, throw and catch to
handle Exceptions in C++. Explain with an example like “division
by zero” exception. 07

Winter 2021 paper not found

Summer 2021 paper not found

Winter 2020 paper not found

Summer 2020 paper not found

You might also like