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

More Related Content

DOCX
Mca2030 object oriented programming – c++
DOCX
Mca2030 object oriented programming – c++
DOCX
Mca1020 programming in c
DOCX
Bca1020 programming in c
DOCX
Bt0082, visual basic
DOCX
Bt8903,c# programming
PDF
Example for ER diagram part11
DOCX
Bt0074
Mca2030 object oriented programming – c++
Mca2030 object oriented programming – c++
Mca1020 programming in c
Bca1020 programming in c
Bt0082, visual basic
Bt8903,c# programming
Example for ER diagram part11
Bt0074

What's hot (20)

PDF
Entity Relationship Diagram part9
DOCX
Bca2030 object oriented programming – c++
DOCX
Mi0041 java and web design
PPTX
Code smells quality of code
PPT
Codings Standards
DOCX
Bba105 computer fundamentals..
DOCX
Bt0074, oops with java
DOCX
Bt0074, oops with java
DOCX
Mi0041 java and web design
DOCX
Smu bscit sem 3 winter 2015 assignments
DOCX
College of administrative and financial sciences assignment
DOCX
Industrial Control System Assignment Help|25% Online Assignment Help
PDF
Ee java lab assignment 3
PDF
Adding gift questions in swayam 2.0
DOCX
Smu bscit sem 3 winter 2014 assignments
DOCX
SMU BCA SPRING 2014 SOLVED ASSIGNMENTS SEM-2
PDF
msf545-syllabus
DOCX
Mca2050 computer architecture
PDF
Top C Language Interview Questions and Answer
PPTX
Software requirement specification i test
Entity Relationship Diagram part9
Bca2030 object oriented programming – c++
Mi0041 java and web design
Code smells quality of code
Codings Standards
Bba105 computer fundamentals..
Bt0074, oops with java
Bt0074, oops with java
Mi0041 java and web design
Smu bscit sem 3 winter 2015 assignments
College of administrative and financial sciences assignment
Industrial Control System Assignment Help|25% Online Assignment Help
Ee java lab assignment 3
Adding gift questions in swayam 2.0
Smu bscit sem 3 winter 2014 assignments
SMU BCA SPRING 2014 SOLVED ASSIGNMENTS SEM-2
msf545-syllabus
Mca2050 computer architecture
Top C Language Interview Questions and Answer
Software requirement specification i test
Ad

Viewers also liked (15)

DOCX
Mit104 software engineering
DOCX
Mca2050 computer architecture
PDF
Panduan durusul lughah_al_arabiyah_2
PDF
Diy Home Security Systems - InfoBarrel
PPTX
Presentació grup 9 Districte 9
PDF
Manifesto urdu inner pages
PDF
Panduan durusul lughah_al_arabiyah_2_2
DOCX
Глюкоза. 11 клас
PPT
Глюкоза. 11 клас
PPTX
subarachnoid hemorrhage
PDF
Panduan durusul lughah_al_arabiyah_3
PPT
Discar
DOCX
Bba402 management accounting
PPT
I Semana Tecnologia Taua
DOCX
Project managment (pm) solved assignments summer 2015
Mit104 software engineering
Mca2050 computer architecture
Panduan durusul lughah_al_arabiyah_2
Diy Home Security Systems - InfoBarrel
Presentació grup 9 Districte 9
Manifesto urdu inner pages
Panduan durusul lughah_al_arabiyah_2_2
Глюкоза. 11 клас
Глюкоза. 11 клас
subarachnoid hemorrhage
Panduan durusul lughah_al_arabiyah_3
Discar
Bba402 management accounting
I Semana Tecnologia Taua
Project managment (pm) solved assignments summer 2015
Ad

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

DOCX
Mca2030 object oriented programming – c++
DOCX
Bca winter 2013 2nd sem
PDF
EEE 3rd year oops cat 3 ans
PDF
PDF
software engineer interview questions.pdf
PPTX
Object Oriented Programing JAVA presentaion
DOCX
Mca winter 2013 2nd sem
DOCX
Bca2030 object oriented programming – c++
PDF
Object Oriented Programming With C 2140705 Darshan All Unit Darshan Institute...
PDF
Module wise format oops questions
PPTX
Basics of object oriented programming
PPTX
What is OOP_ (Object Oriented Programming) (1).pptx
PDF
EEE oops Vth semester viva questions with answer
PDF
oopsinvb-191021101327.pdf
PPTX
Oops in vb
PPTX
Polymorphism.Difference between Inheritance & Polymorphism
PPT
implementing oop_concept
PPTX
Object oriented programming
PPTX
CPP_,module2_1.pptx
PDF
Total oop in c# dot net
Mca2030 object oriented programming – c++
Bca winter 2013 2nd sem
EEE 3rd year oops cat 3 ans
software engineer interview questions.pdf
Object Oriented Programing JAVA presentaion
Mca winter 2013 2nd sem
Bca2030 object oriented programming – c++
Object Oriented Programming With C 2140705 Darshan All Unit Darshan Institute...
Module wise format oops questions
Basics of object oriented programming
What is OOP_ (Object Oriented Programming) (1).pptx
EEE oops Vth semester viva questions with answer
oopsinvb-191021101327.pdf
Oops in vb
Polymorphism.Difference between Inheritance & Polymorphism
implementing oop_concept
Object oriented programming
CPP_,module2_1.pptx
Total oop in c# dot net

Mca2030 object oriented programming – c++

  • 1. 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. 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 : “ help.mbaassignments@gmail.com ” or Call us at : 08263069601