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

DS Using C++ (Assignment-1)

Uploaded by

M. Omkar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

DS Using C++ (Assignment-1)

Uploaded by

M. Omkar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

||Jai Sri Gurudev||

ADICHUNCHANGIRI UNIVERSITY
B G S Institute of Technology
B G Nagar, Nagamangala Tq, Mandya Dist.

Department of Electronics and Communication Engineering

Data Structures Using C++ (22EC551)


Assignment-1
Sem : 5th ‘A’, ‘B’ & ‘C’
(Module-1)
Last date for : 11/10/2024
• INTRODUCTION Submission
Staff : Dr. Manojkumar S B • CLASSES AND
Mr. Deepak R OBJECTS

Note: Answer any 6 Questions by selecting 3 Questions from each chapter.


Question
Questions CO
Number
Explain the following terms with suitable examples
1 (i)Classes & Objects (ii) Inheritance (iii) Polymorphism (iv) Data CO1
abstraction & Encapsulation (v) Dynamic Binding (vi) message passing.
2 Explain the structure of C++ program. Mention applications of C++
CO1
programming language.
What do mean by dynamic initialization of variables? What is the primary
3 CO1
difference between static & dynamic memory allocation?
4 Explain the data types of C++ with examples. CO1
How do you classify operators in C++? (or) Name the operators which are
5 common for C & C++ indicating its precedence & associativity. Also, CO1
mention the operators which are exclusive for C++.

What is class? With the help of general syntax and a simple C++ program
6 using a class describe the terms: class, object, class data members, CO1
member functions and access specifiers.

Why Friend function is required? Write a program to add two complex


7 CO1
numbers using Friend functions.

Define Constructor, Default Constructor, and parameterized constructor


8 and also list the characteristics of the constructor with an example CO1
program.

9 What is a copy constructor? Illustrate the working of copy constructors. CO1


What is the use of Destructor in C++? How it is different from Constructor,
10 CO1
explain in brief.

___________________ ____________________
Signature of Staff Signature of H.O.D

You might also like