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

Mod4_PSTOOPLAB_2022-23_Assessment

The document outlines the Continuous Internal Evaluation for the Problem Solving Through Object Oriented Programming Lab course at Vasavi College of Engineering. It lists various programming tasks related to C++ concepts such as classes, static members, friend functions, constructors, and object lifetime. Each task requires students to write specific C++ programs demonstrating the respective concepts, along with assessment rubrics for execution and timely submission.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Mod4_PSTOOPLAB_2022-23_Assessment

The document outlines the Continuous Internal Evaluation for the Problem Solving Through Object Oriented Programming Lab course at Vasavi College of Engineering. It lists various programming tasks related to C++ concepts such as classes, static members, friend functions, constructors, and object lifetime. Each task requires students to write specific C++ programs demonstrating the respective concepts, along with assessment rubrics for execution and timely submission.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

VASAVI COLLEGE OF ENGINEERING (AUTONOMOUS)

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING


BE – 2nd Semester ECE – B (2022-23)
Course: Problem Solving Through Object Oriented Programming Lab (U22ES211CS)
CONTINUOUS INTERNAL EVALUATION
Module – 4

Roll No: NAME:

Sl. Topic (s) Program Conduc Submissio Page


No ted n Date No
Date
1 Class and Write a C++ program to display the sum of 2 complex numbers using class
object concept? Consider real and imaginary as private data members and
appropriate accessor and mutator functions as public member functions.
2 Static Write a C++ program to illustrate the Static data members and Static member
members functions of a class.
3 Friend Write a C++ program to display the product of 2 rational numbers by defining
function a class named as “rati”, with num and den as private data members,
getdata() , putdata() functions as pure member functions of a class to
initialize and display the objects (Rational numbers) and define a function
mul() to perform the multiplication between 2 rational numbers as normal
function and make it as “friend” to the class “rati”.
4 Constructor Construct an Abstract Data Type (ADT) named as “complex” with real, imag
overloading as private data members, default constructor and parameterized
constructor’s with one argument and two arguments to initialize the complex
numbers and proper accessor and mutator functions to find the difference of
2 complex numbers and display the result and also destructor to destroy the
objects created by constructor. Write a C++ program to display the difference
between 2 complex numbers.
5 Copy Write a C++ program to illustrate the “copy constructor” ?
constructor
6 Nesting of Write a C++ program to illustrate nesting of member functions in the contest
member of class?
functions
7 This pointer Write a C++ program to illustrate “this” pointer?
8 Object life Write a C++ program to illustrate the life time of objects with proper
time constructors and destructors?
9 Friend “An outside function can be friend to more than one class”, write C++
function program to justify the statement? Consider class “first” for first number and
class “second” for second number, define exchange() function which is friend
to both classes having first argument as of type “first” and second argument
as of type “second”, it performs the swapping. Also observe the forward
declaration of the class?

Assessment Rubrics Marks


Obtained
Execution and Verification [5 Marks]
Timely Record Work Submission [8 Marks]

Suggestions:

Signature of Faculty

You might also like