SlideShare a Scribd company logo
1 of 6
Download to read offline
1
Scheme – G
Sample Test Paper-I
Course Name :- Diploma in Computer Engineering Group
Course Code :- CO/CM/CD/IF/CW
Semester :- Fourth
Subject Title :- Object Oriented Programming
Marks : - 25 Marks Time :- 1 Hrs.
Instructions:
1. All questions are compulsory
2. Illustrate your answers with neat sketches wherever necessary
3. Figures to the right indicate full marks
4. Assume suitable data if necessary
5. Preferably, write the answers in sequential order
Q1. Attempt Any THREE. (09 Marks)
a) Define following terms:
i) Data abstraction
ii) Data Encapsulation
iii) Dynamic Binding
b) Give any two methods to create object of a class.
c) Write any three characteristics of constructor.
d) Explain how data hiding is done in C++ with example.
Q2. Attempt any TWO. (8 Marks)
a) Explain the concept of passing an object as function argument with example.
b) What is static data member? Also explain with example why it is required in C++.
c) List and explain any two memory management operators with syntax and example.
Q.3. Attempt any TWO. (8 Marks)
a) Write a program for swapping contents of two variable using friend function.
b) Explain copy constructor with suitable example.
c) Write a program to calculate factorial of a given number.
17432
2
Scheme – G
Sample Test Paper-II
Course Name :- Diploma in Computer Engineering Group
Course Code :- CO/CM/CD/IF/CW
Semester :- Fourth
Subject Title :- Object Oriented Programming
Marks : - 25 Marks Time :- 1 Hrs.
Instructions:
1. All questions are compulsory
2. Illustrate your answers with neat sketches wherever necessary
3. Figures to the right indicate full marks
4. Assume suitable data if necessary
5. Preferably, write the answers in sequential order
Q1. Attempt any THREE. (9 Marks)
a) State any three visibility modes with their use in inheritance.
b) What is pointer? How to declare and initialize pointer?
c) Write any three rules for virtual function?
d) Differentiate between constructor and destructor.(any three points)
Q2. Attempt any TWO (8 Marks)
a) Explain how to insert an element in an array using pointer.
b) With suitable diagram explain the concept of hierarchical inheritance.
c) Define polymorphism? Differentiate between compile time polymorphism
and run time polymorphism.
Q3. Attempt any TWO. (8 Marks)
a) Explain the concept of abstract class with suitable example.
b) Write a program to find length of the string using pointer
c) Write a program to using function overloading to calculate volume of cube
and cylinder.
17432
3
Scheme – G
Sample Question Paper
Course Name :- Diploma in Computer Engineering Group
Course Code :- CO/CM/CD/IF/CW
Semester :- Fourth
Subject Title :- Object Oriented Programming
Marks : - 100 Marks Time :- 3 Hrs.
Instructions:
1. All questions are compulsory
2. Illustrate your answers with neat sketches wherever necessary
3. Figures to the right indicate full marks
4. Assume suitable data if necessary
5. Preferably, write the answers in sequential order
Q.1 (A) Attempt any SIX of the following (12 Marks)
a) What is the use of scope resolution operator?
b) Enlist any two operators used with pointers.
c) Calculate the size of object S1 defined in following class:
class Student
{
char name[10];
int rollno;
float percentage;
};
Student S1;
d) Define Constructor & give Syntax to declare it.
e) What is polymorphism? State its types.
f) State different visibility modes used in inheritance.
g) State the use of this pointer in C++.
h) Give output for following code
class employee
{
public:
employee()
{
cout<<”Welcomen”;
}
};
void main()
{
17432
4
employee E1,E2,E3;
}
Q1. (B) Attempt any TWO of the following (08 Marks)
a) Explain the concept of multiple constructors in a class with suitable example.
b) Enlist types of inheritance. Explain any two with suitable diagram.
c) Differentiate between constructor and destructor?
Q2. Attempt any FOUR of the following (16 Marks)
a) Write syntax with example for defining member function inside and outside class.
b) Differentiate between virtual function and pure virtual function.
c) Give the meaning of deriving a class with public and protected visibility modes.
Give one example of each.
d) Write any four features of Object Oriented Programming..
e) What is Friend function? Explain with suitable example why it is required.
f) Explain the concept of pointer to object with suitable example.
Q3. Attempt any FOUR of the following (16 Marks)
a) Enlist the applications of oops?
b) Explain the concept of constructor with default arguments. Give suitable example.
c) Explain with example, how to declare Constructor in derived class.
d) Write a Programme to overload ‘-’ operator to negate data members of class.
e) Describe the concept of the concept Destructors with suitable example
f) Explain how memory is allocated for objects created for class.
Q4. Attempt any FOUR of the following (16 Marks)
a) Write a program to implement single inheritance with two classes. Declare parent
class as furniture with data members material and price. Derive child class as table
with data members as height and surface_area. Accept and display data for one table.
b) What is parameterized constructor? Give the syntax & example for it’s declaration.
c) Explain console input & output functions used in C++.
d) Define and state two characteristics of static data member and static member
function.
e) Differentiate between Multiple & Multilevel inheritance.
f) Write a program for searching a number in an array using pointer..
5
Q5. Attempt any FOUR of the following (16 Marks)
a) Enlist any four rules for operator overloading.
b) What is structure? How to declare structure? Illustrate with example.
c) Write a program for declaring a class ‘employee’. Derive two classes programmer
and manager from employee class. Make display function virtual which is common
for all and which will display information of one programmer.
d) Differentiate between OOP and POP..
e) Give any four pointer arithmetic operations with example.
f) How run time polymorphism differs from compile time polymorphism. Differentiate
between run time polymorphism and compile time polymorphism with suitable
example.
Q6. Attempt any TWO of the following (16 Marks)
a) Write a program to declare a class ‘Account’ having data members as Account_no
and balance. Accept the data for 5 accounts and display the data of accounts having
balance greater than 5000.
b) Write a program to implement the concept of virtual base class for following figure.
Accept and display information of one employee with his name, code, basic pay,
experience and gross salary with the object of employee class.
c) Write a program to find whether the entered string is palindrome or n
master
Name,code
account
Basic pay
admin
experience
employee
Gross_salary
6

More Related Content

What's hot

Learn C# Programming Polymorphism & Operator Overloading
Learn C# Programming Polymorphism & Operator OverloadingLearn C# Programming Polymorphism & Operator Overloading
Learn C# Programming Polymorphism & Operator OverloadingEng Teong Cheah
 
C++ vs C#
C++ vs C#C++ vs C#
C++ vs C#sudipv
 
Object Oriented Programming - Value Types & Reference Types
Object Oriented Programming - Value Types & Reference TypesObject Oriented Programming - Value Types & Reference Types
Object Oriented Programming - Value Types & Reference TypesDudy Ali
 
Automata And Compiler Design
Automata And Compiler DesignAutomata And Compiler Design
Automata And Compiler Designguestac67362
 
C++17 introduction - Meetup @EtixLabs
C++17 introduction - Meetup @EtixLabsC++17 introduction - Meetup @EtixLabs
C++17 introduction - Meetup @EtixLabsStephane Gleizes
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templatesUmar Ali
 
Sen17513 summer2015-question-paper
Sen17513 summer2015-question-paperSen17513 summer2015-question-paper
Sen17513 summer2015-question-papervaishali rane
 
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015][Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]Mumbai B.Sc.IT Study
 
C++ polymorphism
C++ polymorphismC++ polymorphism
C++ polymorphismFALLEE31188
 
Functional programming-advantages
Functional programming-advantagesFunctional programming-advantages
Functional programming-advantagesSergei Winitzki
 
C# for C++ programmers
C# for C++ programmersC# for C++ programmers
C# for C++ programmersMark Whitaker
 
Software Abstractions for Parallel Hardware
Software Abstractions for Parallel HardwareSoftware Abstractions for Parallel Hardware
Software Abstractions for Parallel HardwareJoel Falcou
 

What's hot (20)

Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Learn C# Programming Polymorphism & Operator Overloading
Learn C# Programming Polymorphism & Operator OverloadingLearn C# Programming Polymorphism & Operator Overloading
Learn C# Programming Polymorphism & Operator Overloading
 
C++ vs C#
C++ vs C#C++ vs C#
C++ vs C#
 
Object Oriented Programming - Value Types & Reference Types
Object Oriented Programming - Value Types & Reference TypesObject Oriented Programming - Value Types & Reference Types
Object Oriented Programming - Value Types & Reference Types
 
Automata And Compiler Design
Automata And Compiler DesignAutomata And Compiler Design
Automata And Compiler Design
 
C++17 introduction - Meetup @EtixLabs
C++17 introduction - Meetup @EtixLabsC++17 introduction - Meetup @EtixLabs
C++17 introduction - Meetup @EtixLabs
 
C++11
C++11C++11
C++11
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
 
Sen17513 summer2015-question-paper
Sen17513 summer2015-question-paperSen17513 summer2015-question-paper
Sen17513 summer2015-question-paper
 
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015][Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
[Question Paper] Introduction To C++ Programming (Revised Course) [April / 2015]
 
C++ polymorphism
C++ polymorphismC++ polymorphism
C++ polymorphism
 
EEE 3rd year oops cat 3 ans
EEE 3rd year  oops cat 3  ansEEE 3rd year  oops cat 3  ans
EEE 3rd year oops cat 3 ans
 
7th semester Computer Science and Information Science Engg (2013 December) Qu...
7th semester Computer Science and Information Science Engg (2013 December) Qu...7th semester Computer Science and Information Science Engg (2013 December) Qu...
7th semester Computer Science and Information Science Engg (2013 December) Qu...
 
Functional programming-advantages
Functional programming-advantagesFunctional programming-advantages
Functional programming-advantages
 
C# for C++ programmers
C# for C++ programmersC# for C++ programmers
C# for C++ programmers
 
Oop april 2018
Oop april 2018Oop april 2018
Oop april 2018
 
C Programming
C ProgrammingC Programming
C Programming
 
Software Abstractions for Parallel Hardware
Software Abstractions for Parallel HardwareSoftware Abstractions for Parallel Hardware
Software Abstractions for Parallel Hardware
 
Bc0037
Bc0037Bc0037
Bc0037
 
Ocs752 unit 1
Ocs752   unit 1Ocs752   unit 1
Ocs752 unit 1
 

Similar to 17432 object oriented programming

FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docjaba kumar
 
Question Bank DS
Question Bank DSQuestion Bank DS
Question Bank DSPRIANKA R
 
Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)ktuonlinenotes
 
Vtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersVtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersmegharajk
 
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...Mumbai B.Sc.IT Study
 
17429 computer network
17429 computer network17429 computer network
17429 computer networksoni_nits
 
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...Mumbai B.Sc.IT Study
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917lakshmi r
 
17428 computer hardware &amp; maintenance
17428   computer hardware &amp; maintenance17428   computer hardware &amp; maintenance
17428 computer hardware &amp; maintenancesoni_nits
 

Similar to 17432 object oriented programming (20)

FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.doc
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Question Bank DS
Question Bank DSQuestion Bank DS
Question Bank DS
 
Oop r&amp;s may 2019
Oop r&amp;s may 2019Oop r&amp;s may 2019
Oop r&amp;s may 2019
 
Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)
 
Oop december 2018
Oop december 2018Oop december 2018
Oop december 2018
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
 
Oop july 2017
Oop july 2017Oop july 2017
Oop july 2017
 
2013-June: 5th Semester CSE / ISE Question Papers
2013-June: 5th  Semester CSE / ISE Question Papers2013-June: 5th  Semester CSE / ISE Question Papers
2013-June: 5th Semester CSE / ISE Question Papers
 
5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers
 
Vtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersVtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papers
 
7th Semester Computer Science (2013-June) Question Papers
7th Semester Computer Science (2013-June) Question Papers7th Semester Computer Science (2013-June) Question Papers
7th Semester Computer Science (2013-June) Question Papers
 
7th cs june 2013
7th cs   june 20137th cs   june 2013
7th cs june 2013
 
2013-June: 7th Semester CSE Question Papers
2013-June: 7th  Semester CSE Question Papers2013-June: 7th  Semester CSE Question Papers
2013-June: 7th Semester CSE Question Papers
 
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
 
17429 computer network
17429 computer network17429 computer network
17429 computer network
 
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...
 
Sp 1418794917
Sp 1418794917Sp 1418794917
Sp 1418794917
 
17428 computer hardware &amp; maintenance
17428   computer hardware &amp; maintenance17428   computer hardware &amp; maintenance
17428 computer hardware &amp; maintenance
 

More from soni_nits

Scheme g second semester (ae,me,pg,pt,fe,mh,mi,ps)
Scheme   g second semester (ae,me,pg,pt,fe,mh,mi,ps)Scheme   g second semester (ae,me,pg,pt,fe,mh,mi,ps)
Scheme g second semester (ae,me,pg,pt,fe,mh,mi,ps)soni_nits
 
Scheme g second semester (au)
Scheme   g second semester (au)Scheme   g second semester (au)
Scheme g second semester (au)soni_nits
 
First semester curriculum (fg)
First semester curriculum (fg)First semester curriculum (fg)
First semester curriculum (fg)soni_nits
 
First semester curriculum (eu)
First semester curriculum (eu)First semester curriculum (eu)
First semester curriculum (eu)soni_nits
 
First semester curriculum (dc,tc,tx)
First semester curriculum (dc,tc,tx)First semester curriculum (dc,tc,tx)
First semester curriculum (dc,tc,tx)soni_nits
 
First semester curriculum (au)
First semester curriculum (au)First semester curriculum (au)
First semester curriculum (au)soni_nits
 
First semester curriculum (all branches)
First semester curriculum (all branches)First semester curriculum (all branches)
First semester curriculum (all branches)soni_nits
 
Tg 17401 enviornmental-studies-16012014
Tg 17401 enviornmental-studies-16012014Tg 17401 enviornmental-studies-16012014
Tg 17401 enviornmental-studies-16012014soni_nits
 
17472 principal of comm system
17472  principal of comm system17472  principal of comm system
17472 principal of comm systemsoni_nits
 
17445 linear integrated circuits
17445   linear integrated circuits17445   linear integrated circuits
17445 linear integrated circuitssoni_nits
 
17444 power electronics
17444   power electronics17444   power electronics
17444 power electronicssoni_nits
 
17443 microprocessor
17443   microprocessor17443   microprocessor
17443 microprocessorsoni_nits
 
17442 biosensors
17442  biosensors17442  biosensors
17442 biosensorssoni_nits
 
17441 t.v.signal transmission system
17441  t.v.signal transmission system17441  t.v.signal transmission system
17441 t.v.signal transmission systemsoni_nits
 
17440 analog communication
17440  analog communication17440  analog communication
17440 analog communicationsoni_nits
 
17439 principal of analog communication
17439  principal of analog communication17439  principal of analog communication
17439 principal of analog communicationsoni_nits
 
17438 communication techniques
17438  communication techniques17438  communication techniques
17438 communication techniquessoni_nits
 
17434 industrial measurments
17434   industrial measurments17434   industrial measurments
17434 industrial measurmentssoni_nits
 
17437 radio reception
17437 radio reception17437 radio reception
17437 radio receptionsoni_nits
 
17435 electronics instrumentation
17435  electronics instrumentation17435  electronics instrumentation
17435 electronics instrumentationsoni_nits
 

More from soni_nits (20)

Scheme g second semester (ae,me,pg,pt,fe,mh,mi,ps)
Scheme   g second semester (ae,me,pg,pt,fe,mh,mi,ps)Scheme   g second semester (ae,me,pg,pt,fe,mh,mi,ps)
Scheme g second semester (ae,me,pg,pt,fe,mh,mi,ps)
 
Scheme g second semester (au)
Scheme   g second semester (au)Scheme   g second semester (au)
Scheme g second semester (au)
 
First semester curriculum (fg)
First semester curriculum (fg)First semester curriculum (fg)
First semester curriculum (fg)
 
First semester curriculum (eu)
First semester curriculum (eu)First semester curriculum (eu)
First semester curriculum (eu)
 
First semester curriculum (dc,tc,tx)
First semester curriculum (dc,tc,tx)First semester curriculum (dc,tc,tx)
First semester curriculum (dc,tc,tx)
 
First semester curriculum (au)
First semester curriculum (au)First semester curriculum (au)
First semester curriculum (au)
 
First semester curriculum (all branches)
First semester curriculum (all branches)First semester curriculum (all branches)
First semester curriculum (all branches)
 
Tg 17401 enviornmental-studies-16012014
Tg 17401 enviornmental-studies-16012014Tg 17401 enviornmental-studies-16012014
Tg 17401 enviornmental-studies-16012014
 
17472 principal of comm system
17472  principal of comm system17472  principal of comm system
17472 principal of comm system
 
17445 linear integrated circuits
17445   linear integrated circuits17445   linear integrated circuits
17445 linear integrated circuits
 
17444 power electronics
17444   power electronics17444   power electronics
17444 power electronics
 
17443 microprocessor
17443   microprocessor17443   microprocessor
17443 microprocessor
 
17442 biosensors
17442  biosensors17442  biosensors
17442 biosensors
 
17441 t.v.signal transmission system
17441  t.v.signal transmission system17441  t.v.signal transmission system
17441 t.v.signal transmission system
 
17440 analog communication
17440  analog communication17440  analog communication
17440 analog communication
 
17439 principal of analog communication
17439  principal of analog communication17439  principal of analog communication
17439 principal of analog communication
 
17438 communication techniques
17438  communication techniques17438  communication techniques
17438 communication techniques
 
17434 industrial measurments
17434   industrial measurments17434   industrial measurments
17434 industrial measurments
 
17437 radio reception
17437 radio reception17437 radio reception
17437 radio reception
 
17435 electronics instrumentation
17435  electronics instrumentation17435  electronics instrumentation
17435 electronics instrumentation
 

Recently uploaded

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 

Recently uploaded (20)

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 

17432 object oriented programming

  • 1. 1 Scheme – G Sample Test Paper-I Course Name :- Diploma in Computer Engineering Group Course Code :- CO/CM/CD/IF/CW Semester :- Fourth Subject Title :- Object Oriented Programming Marks : - 25 Marks Time :- 1 Hrs. Instructions: 1. All questions are compulsory 2. Illustrate your answers with neat sketches wherever necessary 3. Figures to the right indicate full marks 4. Assume suitable data if necessary 5. Preferably, write the answers in sequential order Q1. Attempt Any THREE. (09 Marks) a) Define following terms: i) Data abstraction ii) Data Encapsulation iii) Dynamic Binding b) Give any two methods to create object of a class. c) Write any three characteristics of constructor. d) Explain how data hiding is done in C++ with example. Q2. Attempt any TWO. (8 Marks) a) Explain the concept of passing an object as function argument with example. b) What is static data member? Also explain with example why it is required in C++. c) List and explain any two memory management operators with syntax and example. Q.3. Attempt any TWO. (8 Marks) a) Write a program for swapping contents of two variable using friend function. b) Explain copy constructor with suitable example. c) Write a program to calculate factorial of a given number. 17432
  • 2. 2 Scheme – G Sample Test Paper-II Course Name :- Diploma in Computer Engineering Group Course Code :- CO/CM/CD/IF/CW Semester :- Fourth Subject Title :- Object Oriented Programming Marks : - 25 Marks Time :- 1 Hrs. Instructions: 1. All questions are compulsory 2. Illustrate your answers with neat sketches wherever necessary 3. Figures to the right indicate full marks 4. Assume suitable data if necessary 5. Preferably, write the answers in sequential order Q1. Attempt any THREE. (9 Marks) a) State any three visibility modes with their use in inheritance. b) What is pointer? How to declare and initialize pointer? c) Write any three rules for virtual function? d) Differentiate between constructor and destructor.(any three points) Q2. Attempt any TWO (8 Marks) a) Explain how to insert an element in an array using pointer. b) With suitable diagram explain the concept of hierarchical inheritance. c) Define polymorphism? Differentiate between compile time polymorphism and run time polymorphism. Q3. Attempt any TWO. (8 Marks) a) Explain the concept of abstract class with suitable example. b) Write a program to find length of the string using pointer c) Write a program to using function overloading to calculate volume of cube and cylinder. 17432
  • 3. 3 Scheme – G Sample Question Paper Course Name :- Diploma in Computer Engineering Group Course Code :- CO/CM/CD/IF/CW Semester :- Fourth Subject Title :- Object Oriented Programming Marks : - 100 Marks Time :- 3 Hrs. Instructions: 1. All questions are compulsory 2. Illustrate your answers with neat sketches wherever necessary 3. Figures to the right indicate full marks 4. Assume suitable data if necessary 5. Preferably, write the answers in sequential order Q.1 (A) Attempt any SIX of the following (12 Marks) a) What is the use of scope resolution operator? b) Enlist any two operators used with pointers. c) Calculate the size of object S1 defined in following class: class Student { char name[10]; int rollno; float percentage; }; Student S1; d) Define Constructor & give Syntax to declare it. e) What is polymorphism? State its types. f) State different visibility modes used in inheritance. g) State the use of this pointer in C++. h) Give output for following code class employee { public: employee() { cout<<”Welcomen”; } }; void main() { 17432
  • 4. 4 employee E1,E2,E3; } Q1. (B) Attempt any TWO of the following (08 Marks) a) Explain the concept of multiple constructors in a class with suitable example. b) Enlist types of inheritance. Explain any two with suitable diagram. c) Differentiate between constructor and destructor? Q2. Attempt any FOUR of the following (16 Marks) a) Write syntax with example for defining member function inside and outside class. b) Differentiate between virtual function and pure virtual function. c) Give the meaning of deriving a class with public and protected visibility modes. Give one example of each. d) Write any four features of Object Oriented Programming.. e) What is Friend function? Explain with suitable example why it is required. f) Explain the concept of pointer to object with suitable example. Q3. Attempt any FOUR of the following (16 Marks) a) Enlist the applications of oops? b) Explain the concept of constructor with default arguments. Give suitable example. c) Explain with example, how to declare Constructor in derived class. d) Write a Programme to overload ‘-’ operator to negate data members of class. e) Describe the concept of the concept Destructors with suitable example f) Explain how memory is allocated for objects created for class. Q4. Attempt any FOUR of the following (16 Marks) a) Write a program to implement single inheritance with two classes. Declare parent class as furniture with data members material and price. Derive child class as table with data members as height and surface_area. Accept and display data for one table. b) What is parameterized constructor? Give the syntax & example for it’s declaration. c) Explain console input & output functions used in C++. d) Define and state two characteristics of static data member and static member function. e) Differentiate between Multiple & Multilevel inheritance. f) Write a program for searching a number in an array using pointer..
  • 5. 5 Q5. Attempt any FOUR of the following (16 Marks) a) Enlist any four rules for operator overloading. b) What is structure? How to declare structure? Illustrate with example. c) Write a program for declaring a class ‘employee’. Derive two classes programmer and manager from employee class. Make display function virtual which is common for all and which will display information of one programmer. d) Differentiate between OOP and POP.. e) Give any four pointer arithmetic operations with example. f) How run time polymorphism differs from compile time polymorphism. Differentiate between run time polymorphism and compile time polymorphism with suitable example. Q6. Attempt any TWO of the following (16 Marks) a) Write a program to declare a class ‘Account’ having data members as Account_no and balance. Accept the data for 5 accounts and display the data of accounts having balance greater than 5000. b) Write a program to implement the concept of virtual base class for following figure. Accept and display information of one employee with his name, code, basic pay, experience and gross salary with the object of employee class. c) Write a program to find whether the entered string is palindrome or n master Name,code account Basic pay admin experience employee Gross_salary
  • 6. 6