0% found this document useful (0 votes)
51 views

OOP Assignment 1

This document contains 6 assignments for an Object Oriented Programming course. Each assignment contains 5 questions related to OOP concepts like classes, inheritance, templates, files I/O, STL etc. The assignments are to be submitted to the course faculty Vidhya R Vasekar and include details like department, semester, academic year, course code, date of release and submission.

Uploaded by

Prathamesh Patil
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)
51 views

OOP Assignment 1

This document contains 6 assignments for an Object Oriented Programming course. Each assignment contains 5 questions related to OOP concepts like classes, inheritance, templates, files I/O, STL etc. The assignments are to be submitted to the course faculty Vidhya R Vasekar and include details like department, semester, academic year, course code, date of release and submission.

Uploaded by

Prathamesh Patil
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/ 6

Dr. D.Y.

Patil Unitech Society’s,


Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

ASSIGNMENT-1

Department: AI & DS Semester: I Academic Year – 2023-24


Class: SE

Course: OOP Course faculty: Vidhya R Vasekar

Date of Release: Date of Submission:

Question Question CO
No. Mapping
Q1 Write a program which uses default constructor, parameterized CO1
constructer and destructor.
Q2 Compare 1) Procedure oriented programming Vs Object oriented CO1
programming
Q3 What is the use of ‘this’ pointer CO1

Q4 Write a c++ program that defines class and declares an array of CO1
objects to that class.
Q5 Define class Number which has inline function mult ( ) and cube CO1
() for calculating the multiplication of 2 double numbers given and
cube of the integer number given
Q6 What are the different ways to define member functions of a CO1
class?Give example of each

(Vidhya R Vasekar)
Course faculty

ASSIGNMENT-2
Dr. D.Y. Patil Unitech Society’s,
Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

Department: AI & DS Semester: I Academic Year – 2023-24


Class: SE Div: A & C

Course: OOP Course faculty: Vidhya R Vasekar

Date of Release: Date of Submission:

Question Question CO Blooms Marks


No. Mapping Level
Q1 Write a program to overload unary operator using CO2
friend functions.
Q2 Write a program to overload binary operator using CO2
friend functions.
Q3 Explain what is type casting, Implicit type casting CO2
and explicit type casting
Q4 Explain public, private and protected keywords CO2
using program
Q5 Explain need of operator overloading. Write C++ CO2
program to demonstrate use of unary operator
overloading

(Vidhya R Vasekar)
Course faculty

ASSIGNMENT-3
Dr. D.Y. Patil Unitech Society’s,
Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

Department: AI & DS Semester: I Academic Year – 2023-24


Class: SE Div: A & C

Course: OOP Course faculty: Vidhya R Vasekar

Date of Release: Date of Submission:

Question Question CO Blooms Marks


No. Mapping Level
Q1 What is Pointer, Smart Pointer and Shared Pointer. CO3
Explain using diagram and program
Q2 What is significance of Static keyword in CO3
programming
Q3 Write a program to Find the sum of an array Arr by CO3
passing an array to a function using pointer
Q4 How smart pointers avoids the problem of memory CO3
leak
Q5 Explain virtual base class and virtual function with CO3
example

(Vidhya R Vasekar)
Course faculty

ASSIGNMENT-4
Dr. D.Y. Patil Unitech Society’s,
Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

Department: AI & DS Semester: I Academic Year – 2023-24


Class: SE Div: A & C

Course: OOP Course faculty: Vidhya R Vasekar

Date of Release: Date of Submission:

Question Question CO Blooms Marks


No. Mapping Level
Q1 Explain class template using multiple parameters. CO4
Write a program in C++
Q2 Explain exception handling mechanism in C++? CO4
Write a program in C++ to handle “divide by zero”
exception.
Q3 What is the purpose of Iterator? Elaborate forward, CO4
bidirectional and random-access iterators with
suitable examples
Q4 What do you mean by rethrowing exceptions CO4

Q5 Compare associative containers Vs Sequence CO4


Containers Vs Derived containers with example of
each

(Vidhya R Vasekar)
Course faculty

ASSIGNMENT-5

Department: AI & DS Semester: I Academic Year – 2023-24


Class: SE Div: A & C
Dr. D.Y. Patil Unitech Society’s,
Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

Course: OOP Course faculty: Vidhya R Vasekar

Date of Release: Date of Submission:

Question Question CO Blooms Marks


No. Mapping Level
Q1 Write a program to overload insertion (<<) and CO5
extraction(>>) operator in C++
Q2 Write a program Using the C++ file input and CO5
output class with open(), get(), close() etc methods
for opening, reading from and writing to a file

Q3 Write a The C++ file input and output program: CO5


using seekg(), tellg(), read() etc member functions.

Q4 Write a program using the open(), eof() and CO5


getline() member functions to open and read a file
content line by line

Q5 Write a program to overload insertion (<<) and CO5


extraction(>>) operator in C++

(Vidhya R Vasekar)
Course faculty

ASSIGNMENT-6

Department: AI & DS Semester: I Academic Year – 2023-24


Class: SE Div: A & C

Course: OOP Course faculty: Vidhya R Vasekar


Dr. D.Y. Patil Unitech Society’s,
Dr. D.Y. Patil Institute of Technology
Department of Artificial Intelligence and Data Science

Date of Release: Date of Submission:

Question Question CO Blooms Marks


No. Mapping Level
Q1 Use minimum 8 functions of vector STL. Write a CO6
program to explain the same
Q2 Use minimum 8 functions of Deque STL. Write a CO6
program to explain the same
Q3 What is the STL? Why should a C++ programmer CO6
be interested in the STL? What is the design
philosophy of the STL? What are the major
components of the STL?
Q4 Write a program to implement Map using STL CO6

Q5 Use minimum 8 functions of vector STL. Write a CO6


program to explain the same

(Vidhya R Vasekar)
Course faculty

You might also like