SlideShare a Scribd company logo
Dear students get fully solved assignments 
Send your semester & Specialization name to our mail id : 
“ help.mbaassignments@gmail.com ” 
or 
Call us at : 08263069601 
(FALL 2014) ASSIGNMENT 
PROGRAM MCA (Revised Fall 2012) 
SEMESTER 2 
SUBJECT CODE & NAME MCA2030- OBJECT ORIENTED PROGRAMMING – C++ 
CREDIT 2 
BK ID B1641 
MAX.MARKS 60 
Note: Answer all questions. Kindly note that answers for 10 marks questions should be 
approximately of 400 words. Each question is followed by evaluation scheme. 
1. Write short notes on: 
a) Inheritance 
Answer : Inheritance:-Inheritance means using the Pre-defined Code This is very Main Feature of 
OOP With the advantage of Inheritance we can use any code that is previously created. With the 
help of inheritance we uses the code that is previously defined but always Remember, We are only 
using that code but not changing that code. 
With the Advent of inheritance we are able to use pre-defined code and also able to add new code. 
All the pre-defined code is reside into the form of classes if we want to use that code then we have 
to inherit or extend that class. 
b) Polymorphism 
Answer : Polymorphism is the ability to use an operator or method in different ways. Polymorphism 
gives different meanings or functions to the operators or methods. Poly, referring to many, signifies 
the many uses of these operators and methods. A single method usage or an operator functioning in 
many ways can be called polymorphism. Polymorphism refers to codes, operations or objects that 
behave differently in different contexts.
2. Differentiate between pass by value and pass by reference 
Answer : When passing parameters, what it is called and what happens can be confusing. It is less 
essential that you call it the "correct" thing than you know exactly what is happening. It is critical to 
have a good mental model, a valid memory picture of the process. 
Recall that when you call a function, a chunk of memory called an activation record is allocated. 
Critical to the discussion here is that this memory holds the formal parameter values and function 
local variables. 
3. Differentiate between Constructors and Destructors. 
Answer : Constructor: 
1. Constructor is used to initialize the object. 
2.Constructor can takes parameters/arguments. 
3.Constructor overloading is possible means more than one constructors can be defined in the same 
class. 
4.constructor can be used to initialize the memory dynamically. 
5.Constructor indirectly use the new operator to initilize the objects. 
4. What are the advantages of Polymorphism? How it can be implemented? 
Answer : Polymorphism is the ability to exist in different forms. OOP allows objects belonging to 
different data types to respond to calls of methods of the same name, each one according to an 
appropriate type-specific behavior. 
Polymorphism defines the functionality of difference with a single name / interface. Different types 
of actions are defined by using one entity / method, which saves the time in investing the name of 
different method names. The action is determined by the common nature of the action. For 
example, adding integers and floating point values. The action is common. One interface, and 
multiple methods is the concept of polymorphism 
5. Differentiate between Containers and Iterators 
Answer : Containers and iterators 
If you don’t know how many objects you’re going to need to solve a particular problem, or how long 
they will last, you also don’t know how to store those objects. How can you know how much space 
to create? You can’t, since that information isn’t known until run time. 
The solution to most problems in object-
6. Describe the two basic exception handling models. 
Answer : Exception handling is the process of responding to the occurrence, during computation, of 
exceptions – anomalous or exceptional conditions requiring special processing – often changing the 
normal flow of program execution. It is provided by specialized programming language constructs or 
computer hardware mechanisms. 
An exception is a problem that arises during the execution of a program. An exception can occur for 
many different reasons, including the following: 
 A user has entered invalid data. 
Dear students get fully solved assignments 
Send your semester & Specialization name to our mail id : 
“ help.mbaassignments@gmail.com ” 
or 
Call us at : 08263069601
Ad

More Related Content

What's hot (20)

Entity Relationship Diagram part9
Entity Relationship Diagram part9Entity Relationship Diagram part9
Entity Relationship Diagram part9
DrMohammed Qassim
 
Bca2030 object oriented programming – c++
Bca2030  object oriented programming – c++Bca2030  object oriented programming – c++
Bca2030 object oriented programming – c++
smumbahelp
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
smumbahelp
 
Code smells quality of code
Code smells   quality of codeCode smells   quality of code
Code smells quality of code
Hasan Al Mamun
 
Codings Standards
Codings StandardsCodings Standards
Codings Standards
Philip Johnson
 
Bba105 computer fundamentals..
Bba105  computer fundamentals..Bba105  computer fundamentals..
Bba105 computer fundamentals..
smumbahelp
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
smumbahelp
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
smumbahelp
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
Study Stuff
 
Smu bscit sem 3 winter 2015 assignments
Smu bscit sem 3 winter 2015 assignmentsSmu bscit sem 3 winter 2015 assignments
Smu bscit sem 3 winter 2015 assignments
solved_assignments
 
College of administrative and financial sciences assignment
College of administrative and financial sciences assignmentCollege of administrative and financial sciences assignment
College of administrative and financial sciences assignment
mehek4
 
Industrial Control System Assignment Help|25% Online Assignment Help
Industrial Control System Assignment Help|25% Online Assignment HelpIndustrial Control System Assignment Help|25% Online Assignment Help
Industrial Control System Assignment Help|25% Online Assignment Help
Nicole Valerio
 
Ee java lab assignment 3
Ee java lab assignment 3Ee java lab assignment 3
Ee java lab assignment 3
Kuntal Bhowmick
 
Adding gift questions in swayam 2.0
Adding gift questions  in swayam 2.0Adding gift questions  in swayam 2.0
Adding gift questions in swayam 2.0
aschrdc
 
Smu bscit sem 3 winter 2014 assignments
Smu bscit sem 3 winter 2014 assignmentsSmu bscit sem 3 winter 2014 assignments
Smu bscit sem 3 winter 2014 assignments
solved_assignments
 
SMU BCA SPRING 2014 SOLVED ASSIGNMENTS SEM-2
SMU BCA SPRING 2014  SOLVED ASSIGNMENTS SEM-2SMU BCA SPRING 2014  SOLVED ASSIGNMENTS SEM-2
SMU BCA SPRING 2014 SOLVED ASSIGNMENTS SEM-2
smumbahelp
 
msf545-syllabus
msf545-syllabusmsf545-syllabus
msf545-syllabus
Andrew Paul Acosta
 
Mca2050 computer architecture
Mca2050  computer architectureMca2050  computer architecture
Mca2050 computer architecture
smumbahelp
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
Vineet Kumar Saini
 
Software requirement specification i test
Software  requirement  specification i testSoftware  requirement  specification i test
Software requirement specification i test
Norhayati Razak
 
Entity Relationship Diagram part9
Entity Relationship Diagram part9Entity Relationship Diagram part9
Entity Relationship Diagram part9
DrMohammed Qassim
 
Bca2030 object oriented programming – c++
Bca2030  object oriented programming – c++Bca2030  object oriented programming – c++
Bca2030 object oriented programming – c++
smumbahelp
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
smumbahelp
 
Code smells quality of code
Code smells   quality of codeCode smells   quality of code
Code smells quality of code
Hasan Al Mamun
 
Bba105 computer fundamentals..
Bba105  computer fundamentals..Bba105  computer fundamentals..
Bba105 computer fundamentals..
smumbahelp
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
smumbahelp
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
smumbahelp
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
Study Stuff
 
Smu bscit sem 3 winter 2015 assignments
Smu bscit sem 3 winter 2015 assignmentsSmu bscit sem 3 winter 2015 assignments
Smu bscit sem 3 winter 2015 assignments
solved_assignments
 
College of administrative and financial sciences assignment
College of administrative and financial sciences assignmentCollege of administrative and financial sciences assignment
College of administrative and financial sciences assignment
mehek4
 
Industrial Control System Assignment Help|25% Online Assignment Help
Industrial Control System Assignment Help|25% Online Assignment HelpIndustrial Control System Assignment Help|25% Online Assignment Help
Industrial Control System Assignment Help|25% Online Assignment Help
Nicole Valerio
 
Ee java lab assignment 3
Ee java lab assignment 3Ee java lab assignment 3
Ee java lab assignment 3
Kuntal Bhowmick
 
Adding gift questions in swayam 2.0
Adding gift questions  in swayam 2.0Adding gift questions  in swayam 2.0
Adding gift questions in swayam 2.0
aschrdc
 
Smu bscit sem 3 winter 2014 assignments
Smu bscit sem 3 winter 2014 assignmentsSmu bscit sem 3 winter 2014 assignments
Smu bscit sem 3 winter 2014 assignments
solved_assignments
 
SMU BCA SPRING 2014 SOLVED ASSIGNMENTS SEM-2
SMU BCA SPRING 2014  SOLVED ASSIGNMENTS SEM-2SMU BCA SPRING 2014  SOLVED ASSIGNMENTS SEM-2
SMU BCA SPRING 2014 SOLVED ASSIGNMENTS SEM-2
smumbahelp
 
Mca2050 computer architecture
Mca2050  computer architectureMca2050  computer architecture
Mca2050 computer architecture
smumbahelp
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
Vineet Kumar Saini
 
Software requirement specification i test
Software  requirement  specification i testSoftware  requirement  specification i test
Software requirement specification i test
Norhayati Razak
 

Viewers also liked (15)

Mit104 software engineering
Mit104  software engineeringMit104  software engineering
Mit104 software engineering
smumbahelp
 
Mca2050 computer architecture
Mca2050  computer architectureMca2050  computer architecture
Mca2050 computer architecture
smumbahelp
 
Panduan durusul lughah_al_arabiyah_2
Panduan durusul lughah_al_arabiyah_2Panduan durusul lughah_al_arabiyah_2
Panduan durusul lughah_al_arabiyah_2
Muhammad Idris
 
Diy Home Security Systems - InfoBarrel
Diy Home Security Systems - InfoBarrelDiy Home Security Systems - InfoBarrel
Diy Home Security Systems - InfoBarrel
exultantskit8598
 
Presentació grup 9 Districte 9
Presentació grup 9 Districte 9Presentació grup 9 Districte 9
Presentació grup 9 Districte 9
AteneaGT
 
Manifesto urdu inner pages
Manifesto urdu inner pagesManifesto urdu inner pages
Manifesto urdu inner pages
JK_Manifesto
 
Panduan durusul lughah_al_arabiyah_2_2
Panduan durusul lughah_al_arabiyah_2_2Panduan durusul lughah_al_arabiyah_2_2
Panduan durusul lughah_al_arabiyah_2_2
Muhammad Idris
 
Глюкоза. 11 клас
Глюкоза. 11 класГлюкоза. 11 клас
Глюкоза. 11 клас
Ivanna_Zholnovich
 
Глюкоза. 11 клас
Глюкоза. 11 класГлюкоза. 11 клас
Глюкоза. 11 клас
Ivanna_Zholnovich
 
subarachnoid hemorrhage
subarachnoid hemorrhagesubarachnoid hemorrhage
subarachnoid hemorrhage
Abdul Waris
 
Panduan durusul lughah_al_arabiyah_3
Panduan durusul lughah_al_arabiyah_3Panduan durusul lughah_al_arabiyah_3
Panduan durusul lughah_al_arabiyah_3
Muhammad Idris
 
Discar
DiscarDiscar
Discar
phone2b
 
Bba402 management accounting
Bba402 management accountingBba402 management accounting
Bba402 management accounting
smumbahelp
 
I Semana Tecnologia Taua
I Semana Tecnologia TauaI Semana Tecnologia Taua
I Semana Tecnologia Taua
atilasilvalima
 
Project managment (pm) solved assignments summer 2015
Project managment  (pm) solved assignments summer 2015Project managment  (pm) solved assignments summer 2015
Project managment (pm) solved assignments summer 2015
smumbahelp
 
Mit104 software engineering
Mit104  software engineeringMit104  software engineering
Mit104 software engineering
smumbahelp
 
Mca2050 computer architecture
Mca2050  computer architectureMca2050  computer architecture
Mca2050 computer architecture
smumbahelp
 
Panduan durusul lughah_al_arabiyah_2
Panduan durusul lughah_al_arabiyah_2Panduan durusul lughah_al_arabiyah_2
Panduan durusul lughah_al_arabiyah_2
Muhammad Idris
 
Diy Home Security Systems - InfoBarrel
Diy Home Security Systems - InfoBarrelDiy Home Security Systems - InfoBarrel
Diy Home Security Systems - InfoBarrel
exultantskit8598
 
Presentació grup 9 Districte 9
Presentació grup 9 Districte 9Presentació grup 9 Districte 9
Presentació grup 9 Districte 9
AteneaGT
 
Manifesto urdu inner pages
Manifesto urdu inner pagesManifesto urdu inner pages
Manifesto urdu inner pages
JK_Manifesto
 
Panduan durusul lughah_al_arabiyah_2_2
Panduan durusul lughah_al_arabiyah_2_2Panduan durusul lughah_al_arabiyah_2_2
Panduan durusul lughah_al_arabiyah_2_2
Muhammad Idris
 
subarachnoid hemorrhage
subarachnoid hemorrhagesubarachnoid hemorrhage
subarachnoid hemorrhage
Abdul Waris
 
Panduan durusul lughah_al_arabiyah_3
Panduan durusul lughah_al_arabiyah_3Panduan durusul lughah_al_arabiyah_3
Panduan durusul lughah_al_arabiyah_3
Muhammad Idris
 
Bba402 management accounting
Bba402 management accountingBba402 management accounting
Bba402 management accounting
smumbahelp
 
I Semana Tecnologia Taua
I Semana Tecnologia TauaI Semana Tecnologia Taua
I Semana Tecnologia Taua
atilasilvalima
 
Project managment (pm) solved assignments summer 2015
Project managment  (pm) solved assignments summer 2015Project managment  (pm) solved assignments summer 2015
Project managment (pm) solved assignments summer 2015
smumbahelp
 
Ad

Similar to Mca2030 object oriented programming – c++ (20)

Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++
smumbahelp
 
Bca winter 2013 2nd sem
Bca winter 2013 2nd semBca winter 2013 2nd sem
Bca winter 2013 2nd sem
smumbahelp
 
Mca winter 2013 2nd sem
Mca winter 2013 2nd semMca winter 2013 2nd sem
Mca winter 2013 2nd sem
smumbahelp
 
OOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdfOOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdf
HouseMusica
 
Bca2030 object oriented programming – c++
Bca2030   object oriented programming – c++Bca2030   object oriented programming – c++
Bca2030 object oriented programming – c++
smumbahelp
 
Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual
Abdul Hannan
 
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
yenfrieyshal
 
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
DevDay Da Nang
 
Javascript design patterns
Javascript design patternsJavascript design patterns
Javascript design patterns
GomathiNayagam S
 
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
jhonzteaste
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programming
smumbahelp
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programming
smumbahelp
 
Tarefapatterns
TarefapatternsTarefapatterns
Tarefapatterns
Jose Aparicio
 
C#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course ContentC#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course Content
SVRTechnologies
 
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdfTLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
XyrevManeclang
 
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Akhil Mittal
 
Basics of object oriented programming
Basics of object oriented programmingBasics of object oriented programming
Basics of object oriented programming
Nitin Kumar Kashyap
 
4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT
Ajay Chimmani
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
DeepikaV81
 
C++ & VISUAL C++
C++ & VISUAL C++ C++ & VISUAL C++
C++ & VISUAL C++
Makaha Rutendo
 
Mca2030 object oriented programming – c++
Mca2030  object oriented programming – c++Mca2030  object oriented programming – c++
Mca2030 object oriented programming – c++
smumbahelp
 
Bca winter 2013 2nd sem
Bca winter 2013 2nd semBca winter 2013 2nd sem
Bca winter 2013 2nd sem
smumbahelp
 
Mca winter 2013 2nd sem
Mca winter 2013 2nd semMca winter 2013 2nd sem
Mca winter 2013 2nd sem
smumbahelp
 
OOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdfOOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdf
HouseMusica
 
Bca2030 object oriented programming – c++
Bca2030   object oriented programming – c++Bca2030   object oriented programming – c++
Bca2030 object oriented programming – c++
smumbahelp
 
Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual
Abdul Hannan
 
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
yenfrieyshal
 
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
[DevDay2018] Let’s all get along. Clean Code please! - By: Christophe K. Ngo,...
DevDay Da Nang
 
Javascript design patterns
Javascript design patternsJavascript design patterns
Javascript design patterns
GomathiNayagam S
 
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Fa...
jhonzteaste
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programming
smumbahelp
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programming
smumbahelp
 
C#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course ContentC#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course Content
SVRTechnologies
 
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdfTLE 7-8 ICT-CSS Q1_M3 for printing.pdf
TLE 7-8 ICT-CSS Q1_M3 for printing.pdf
XyrevManeclang
 
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Akhil Mittal
 
Basics of object oriented programming
Basics of object oriented programmingBasics of object oriented programming
Basics of object oriented programming
Nitin Kumar Kashyap
 
4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT
Ajay Chimmani
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
DeepikaV81
 
Ad

Mca2030 object oriented programming – c++

  • 1. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ [email protected] ” or Call us at : 08263069601 (FALL 2014) ASSIGNMENT PROGRAM MCA (Revised Fall 2012) SEMESTER 2 SUBJECT CODE & NAME MCA2030- OBJECT ORIENTED PROGRAMMING – C++ CREDIT 2 BK ID B1641 MAX.MARKS 60 Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme. 1. Write short notes on: a) Inheritance Answer : Inheritance:-Inheritance means using the Pre-defined Code This is very Main Feature of OOP With the advantage of Inheritance we can use any code that is previously created. With the help of inheritance we uses the code that is previously defined but always Remember, We are only using that code but not changing that code. With the Advent of inheritance we are able to use pre-defined code and also able to add new code. All the pre-defined code is reside into the form of classes if we want to use that code then we have to inherit or extend that class. b) Polymorphism Answer : Polymorphism is the ability to use an operator or method in different ways. Polymorphism gives different meanings or functions to the operators or methods. Poly, referring to many, signifies the many uses of these operators and methods. A single method usage or an operator functioning in many ways can be called polymorphism. Polymorphism refers to codes, operations or objects that behave differently in different contexts.
  • 2. 2. Differentiate between pass by value and pass by reference Answer : When passing parameters, what it is called and what happens can be confusing. It is less essential that you call it the "correct" thing than you know exactly what is happening. It is critical to have a good mental model, a valid memory picture of the process. Recall that when you call a function, a chunk of memory called an activation record is allocated. Critical to the discussion here is that this memory holds the formal parameter values and function local variables. 3. Differentiate between Constructors and Destructors. Answer : Constructor: 1. Constructor is used to initialize the object. 2.Constructor can takes parameters/arguments. 3.Constructor overloading is possible means more than one constructors can be defined in the same class. 4.constructor can be used to initialize the memory dynamically. 5.Constructor indirectly use the new operator to initilize the objects. 4. What are the advantages of Polymorphism? How it can be implemented? Answer : Polymorphism is the ability to exist in different forms. OOP allows objects belonging to different data types to respond to calls of methods of the same name, each one according to an appropriate type-specific behavior. Polymorphism defines the functionality of difference with a single name / interface. Different types of actions are defined by using one entity / method, which saves the time in investing the name of different method names. The action is determined by the common nature of the action. For example, adding integers and floating point values. The action is common. One interface, and multiple methods is the concept of polymorphism 5. Differentiate between Containers and Iterators Answer : Containers and iterators If you don’t know how many objects you’re going to need to solve a particular problem, or how long they will last, you also don’t know how to store those objects. How can you know how much space to create? You can’t, since that information isn’t known until run time. The solution to most problems in object-
  • 3. 6. Describe the two basic exception handling models. Answer : Exception handling is the process of responding to the occurrence, during computation, of exceptions – anomalous or exceptional conditions requiring special processing – often changing the normal flow of program execution. It is provided by specialized programming language constructs or computer hardware mechanisms. An exception is a problem that arises during the execution of a program. An exception can occur for many different reasons, including the following:  A user has entered invalid data. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ [email protected] ” or Call us at : 08263069601