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
(SPRING 2016) 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
helpof inheritance we usesthe code thatispreviously defined but always Remember, We are only
using that code but not changing that code.
b) Polymorphism
Answer:Polymorphismisthe abilitytouse anoperatoror methodindifferent ways. Polymorphism
givesdifferentmeaningsorfunctionstothe operatorsormethods.Poly,referring to many, signifies
the many usesof these operatorsandmethods.A single methodusage oranoperatorfunctioningin
many ways can be called polymorphism. Polymorphism refers to codes, operations or objects that
behave differently in different contexts.
2. Differentiate between Classes and Objects. Write an example program to represent a class and
its object.
Answer : Class vs Object in Java
Some difference between class and object, which is totally based upon practical experience :
1) A class is what you create while coding, but object is created at runtime by your execution
environment e.g. JVM. Though you write code, which is required to create object during coding
e.g.new Student(), object is not created at that time. They are only created when you run your
program, and when runtime executes that line. Usually constructor of a class is called when an
object is created in Java, but yes there are some anomalies as well e.g. Serialization.
2) Most important difference between class and
3. Describe operator overloading. Which are the operators that cannot be overloaded?
Answer: Operator overloading is a technique by which operators used in a programming language
are implemented in user-defined types with customized logic that is based on the types of
arguments passed.
Operator overloading facilitates the specification of user-defined implementation for operations
wherein one or both operands are of user-defined class or structure type. This helps user-defined
typesto behave muchlike the fundamental primitive data types. Operator overloading is helpful in
caseswhere the operators used for certain types provide semantics related to the domain context
and syntactic support as found in the programming
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.
Polymorphismdefinesthe functionalityof difference withasingle name / interface. Different types
of actionsare definedbyusingone 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’tknowhowmany objectsyou’re goingtoneedtosolve aparticular problem, or how long
theywill 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-oriented
6. Describe the two basic exception handling models.
Answer:Exceptionhandlingisthe processof responding to the occurrence, during computation, of
exceptions –anomalousorexceptional conditionsrequiringspecial processing – often changing the
normal flowof program execution.Itisprovidedbyspecializedprogramminglanguage constructs or
computer hardware mechanisms.
An exceptionisaproblemthatarisesduringthe execution of a program. An exception can occur for
many different reasons, including the following:
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

What's hot (20)

PDF
Polymorphism
Raffaele Doti
 
DOCX
Mca1020 programming in c
smumbahelp
 
PPTX
OOP - Polymorphism
Mudasir Qazi
 
DOCX
Bt0074, oops with java
smumbahelp
 
DOCX
Bt8903,c# programming
smumbahelp
 
DOCX
Mca 4030 programming in java
smumbahelp
 
PPTX
Polymorphism
Ahmed Za'anin
 
DOCX
Mca 4030 programming in java
smumbahelp
 
PPT
Polymorphism
Kumar
 
PPTX
OOP in C#
DevMix
 
PDF
Javapolymorphism
karthikenlume
 
DOCX
Bt0074 oop with java
smumbahelp
 
PPTX
Unusual C# - OOP
Medhat Dawoud
 
PDF
Object-Oriented Polymorphism Unleashed
Naresh Chintalcheru
 
DOCX
Mi0041 java and web design
smumbahelp
 
PPT
Polymorphism in java
Lovely Professional University
 
DOCX
Mi0041 java and web design
smumbahelp
 
DOCX
Mi0041 java and web design
Study Stuff
 
DOCX
Bt0074, oops with java
smumbahelp
 
DOCX
Bt0074, oops with java
smumbahelp
 
Polymorphism
Raffaele Doti
 
Mca1020 programming in c
smumbahelp
 
OOP - Polymorphism
Mudasir Qazi
 
Bt0074, oops with java
smumbahelp
 
Bt8903,c# programming
smumbahelp
 
Mca 4030 programming in java
smumbahelp
 
Polymorphism
Ahmed Za'anin
 
Mca 4030 programming in java
smumbahelp
 
Polymorphism
Kumar
 
OOP in C#
DevMix
 
Javapolymorphism
karthikenlume
 
Bt0074 oop with java
smumbahelp
 
Unusual C# - OOP
Medhat Dawoud
 
Object-Oriented Polymorphism Unleashed
Naresh Chintalcheru
 
Mi0041 java and web design
smumbahelp
 
Polymorphism in java
Lovely Professional University
 
Mi0041 java and web design
smumbahelp
 
Mi0041 java and web design
Study Stuff
 
Bt0074, oops with java
smumbahelp
 
Bt0074, oops with java
smumbahelp
 

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

PPTX
Basics of object oriented programming
Nitin Kumar Kashyap
 
DOCX
Mi0041 java and web design
smumbahelp
 
PDF
OOP lesson1 and Variables.pdf
HouseMusica
 
PPT
Object Oriented Concepts and Principles
deonpmeyer
 
DOCX
Bca winter 2013 2nd sem
smumbahelp
 
PDF
EEE oops Vth semester viva questions with answer
Jeba Moses
 
PDF
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
nofakeNews
 
PPTX
OOP interview questions & answers.
Questpond
 
DOC
C#
LiquidHub
 
DOC
Delphi qa
sandy14234
 
PDF
Objectgeoriënteerd programmeren Cursusdeel 3 2nd Edition Arjan J F Kok
hquucazn110
 
DOCX
Mca1020 programming in c
smumbahelp
 
DOCX
Bca2030 object oriented programming – c++
smumbahelp
 
PPTX
OOP-Advanced Programming with c++
Mohamed Essam
 
DOCX
Mca winter 2013 2nd sem
smumbahelp
 
PDF
Data Structure Interview Questions & Answers
Satyam Jaiswal
 
DOCX
Mca 4030 programming in java
smumbahelp
 
PDF
Cs2305 programming paradigms lecturer notes
Saravanakumar viswanathan
 
DOCX
Mi0041 java and web design
smumbahelp
 
PDF
01 objective-c session 1
Amr Elghadban (AmrAngry)
 
Basics of object oriented programming
Nitin Kumar Kashyap
 
Mi0041 java and web design
smumbahelp
 
OOP lesson1 and Variables.pdf
HouseMusica
 
Object Oriented Concepts and Principles
deonpmeyer
 
Bca winter 2013 2nd sem
smumbahelp
 
EEE oops Vth semester viva questions with answer
Jeba Moses
 
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
nofakeNews
 
OOP interview questions & answers.
Questpond
 
Delphi qa
sandy14234
 
Objectgeoriënteerd programmeren Cursusdeel 3 2nd Edition Arjan J F Kok
hquucazn110
 
Mca1020 programming in c
smumbahelp
 
Bca2030 object oriented programming – c++
smumbahelp
 
OOP-Advanced Programming with c++
Mohamed Essam
 
Mca winter 2013 2nd sem
smumbahelp
 
Data Structure Interview Questions & Answers
Satyam Jaiswal
 
Mca 4030 programming in java
smumbahelp
 
Cs2305 programming paradigms lecturer notes
Saravanakumar viswanathan
 
Mi0041 java and web design
smumbahelp
 
01 objective-c session 1
Amr Elghadban (AmrAngry)
 
Ad

Recently uploaded (20)

PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
community health nursing question paper 2.pdf
Prince kumar
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Dimensions of Societal Planning in Commonism
StefanMz
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
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 (SPRING 2016) 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 helpof inheritance we usesthe code thatispreviously defined but always Remember, We are only using that code but not changing that code. b) Polymorphism Answer:Polymorphismisthe abilitytouse anoperatoror methodindifferent ways. Polymorphism givesdifferentmeaningsorfunctionstothe operatorsormethods.Poly,referring to many, signifies the many usesof these operatorsandmethods.A single methodusage oranoperatorfunctioningin many ways can be called polymorphism. Polymorphism refers to codes, operations or objects that behave differently in different contexts. 2. Differentiate between Classes and Objects. Write an example program to represent a class and its object. Answer : Class vs Object in Java Some difference between class and object, which is totally based upon practical experience :
  • 2. 1) A class is what you create while coding, but object is created at runtime by your execution environment e.g. JVM. Though you write code, which is required to create object during coding e.g.new Student(), object is not created at that time. They are only created when you run your program, and when runtime executes that line. Usually constructor of a class is called when an object is created in Java, but yes there are some anomalies as well e.g. Serialization. 2) Most important difference between class and 3. Describe operator overloading. Which are the operators that cannot be overloaded? Answer: Operator overloading is a technique by which operators used in a programming language are implemented in user-defined types with customized logic that is based on the types of arguments passed. Operator overloading facilitates the specification of user-defined implementation for operations wherein one or both operands are of user-defined class or structure type. This helps user-defined typesto behave muchlike the fundamental primitive data types. Operator overloading is helpful in caseswhere the operators used for certain types provide semantics related to the domain context and syntactic support as found in the programming 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. Polymorphismdefinesthe functionalityof difference withasingle name / interface. Different types of actionsare definedbyusingone 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’tknowhowmany objectsyou’re goingtoneedtosolve aparticular problem, or how long theywill 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-oriented
  • 3. 6. Describe the two basic exception handling models. Answer:Exceptionhandlingisthe processof responding to the occurrence, during computation, of exceptions –anomalousorexceptional conditionsrequiringspecial processing – often changing the normal flowof program execution.Itisprovidedbyspecializedprogramminglanguage constructs or computer hardware mechanisms. An exceptionisaproblemthatarisesduringthe execution of a program. An exception can occur for many different reasons, including the following: Dear students get fully solved assignments Send your semester & Specialization name to our mail id : [email protected] or call us at : 08263069601