SlideShare a Scribd company logo
1 of 9
CS2203      OBJECT ORIENTED PROGRAMMING                  IIIrd Sem
                        Question Bank
                          UNIT – I
PART – A (2 MARKS)
1. Define Object Oriented Programming.
2. Define Objects.
3. What are the features of Object oriented programming.
4. Define Encapsulation and Data hiding.
5. Define Data Abstraction.
6. Define Data members.
7. Define Member functions.
8. State Inheritance.
9. State Polymorphism.
10. List and define the two types of Polymorphism.
11. State Dynamic Binding.
12. Define Message Passing.
13. List some benefits of OOPS.
14. List out the applications of OOP.
15. What is the return type of main ()?
16. List out the four basic sections in a typical C++ program.
17. Define C++.
18. Define Token. What are the token used in C++?
19. Define identifier. What are the rules to be followed for identifiers?
20. State the use of void in C++.
21. Define an Enumeration data type.
22. Define reference variable. Give its syntax.
23. List out the new operators introduced in c++.
24. What is the use of Scope resolution operator?
25. List out the memory referencing operator.
26. Define Implicit Conversion.
27. What is call by reference?
28. What are inline functions?
29. State the advantages of Default Arguments.
30. Define Function overloading.
31. Define friend function.




                                 PART – B
1. Explain the basic concepts of Object oriented programming (16)
2. Explain the use of constant pointers and pointers to constant with
an example.(16)
3. a. Difference between class and struct and also illustrate with an
example. (8)
b. What are the difference between pointers to constants and
constant to
pointers? (8)
4. a. Write a C++ program using inline function. (8)
b. Write a C++ program to illustrate the static function (8)
5. Explain briefly about function overloading with a suitable example.
(16)
6. a. Discuss constant and volatile functions. (8)
b. What is linkage specification and also explain its need. (8)
7. Explain about call by reference and return by reference with
program. (16)
8. Explain Nested classes and local classes with an example (16)




                              UNIT – II
PART – A (2 MARKS)
1. Define Constructor.
2. List some of the special characteristics of constructor.
3. Give the various types of constructors.
4. What are the ways in which a constructor can be called?
5. State dynamic initialization of objects.
6. Define Destructor.
7. List some of the rules for operator overloading.
8. What are the types of type conversions?
9. What are the conditions should a casting operator satisfy?
10. How the objects are initialized dynamically?


                                PART – B
1. a. Explain the copy constructors with an example? (8)
b. Explain explicit Constructors, Parametrized Constructors, and
multiple
Constructors with suitable example. (8)
2. a. How to achieve operator overloading through friend Function?
(8)
b. Write a program using friend functions for overloading
<<and>>operators? (8)
3. Explain the wrapper classes with examples? (16)
UNIT – III
                            PART – A (2 MARKS)

1. What are types of inheritance?
2. Give the syntax for inheritance.
3. Define single inheritance.
4. Define multi-level inheritance.
5. Define multiple inheritance.
6. What is an abstract class?
7. What are the types of polymorphism?
8. Define β€˜this’ pointer.
9. What is virtual function?
10. When a function is declared as virtual, C++ determines which
function to
11. What is pure virtual function?
12. Define RTTI.
13. What is cross casting?
14. What is down casting?


                             PART – B
1. Explain the different types of polymorphism (16)
2. Explain various types of Inheritance. (16)
3. Describe Pure Virtual function with an example. (16)
4. Write a C++ program using this pointer. (16)
5. Write a C++ program using dynamic_const. (16)
6. Explain in detail about cross casting and down casting. (16)




                             UNIT – IV
                        PART – A ( 2 MARKS )
1. Define manipulators and also mention the manipulators that are
used in C++.
2. What is the need for streams?
3. Give some of predefined streams.
4. What are the possible types that a file can be defined?
5. What are the two methods available for opening the files?
6. What is global namespace?
7. Write any four operations possible on string objects.
8. What are the advantages of using generic algorithm?
9. What is STL?
10. What is find()?
11. What are the ways that a string object can be created?



                                PART – B

1. What are streams? Why they are useful? (16)
2. Explain about Formattted and Unformatted IO with suitable
Example (16)
3. What is manipulator? Difference between manipulators and ios
Function? (16)
4. Explain the process of open,read,write and close files? (16)
5. Explain the role of seekg(),seekp(),tellg(),tellp(),function in the
process of
random access in a binary file (16)
6. Explain about the STD Namespace (16)
7. Explain the Standard Template Library and how it is working? (16)
UNIT – V
                         PART – A (2 MARKS)
1. What is the need for template function in C++? What are their
advantages?
2. What are the drawbacks of using macros?
3. What is Function Template?
4. What are the components of Exception Handling?
5. What is Uncaught Exception?
6. What is the terminate () functions?
7. What are the disadvantages of the exception handling?



                              PART – B

1. Explain the Function template (16)
2. Explain the class template (16)
3. What is the need for exception handling (16)
4. Explain the following function
5. a) What are specifications? In which case are they needed? (8)
b)What are the disadvantages of the exception handling mechanism?
(8)
6. When do we need multiple catch blocks for a single try block? Give
an example? (16)

More Related Content

What's hot

OO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual FunctionOO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual FunctionYu-Sheng (Yosen) Chen
Β 
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
Β 
C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#Dr.Neeraj Kumar Pandey
Β 
Question bank
Question bankQuestion bank
Question bankmushtaqdm
Β 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programingAhammed Alamin
Β 
Oops model question
Oops model questionOops model question
Oops model questionSANTOSH RATH
Β 
Vtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersVtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersmegharajk
Β 
[C++ korea] effective modern c++ study item 4 - 6 μ‹ μ΄Œ
[C++ korea] effective modern c++ study   item 4 - 6 μ‹ μ΄Œ[C++ korea] effective modern c++ study   item 4 - 6 μ‹ μ΄Œ
[C++ korea] effective modern c++ study item 4 - 6 μ‹ μ΄ŒSeok-joon Yun
Β 
Com Ed 6 Prelim
Com Ed 6 PrelimCom Ed 6 Prelim
Com Ed 6 Prelimbluejayjunior
Β 
Blueprints: Introduction to Python programming
Blueprints: Introduction to Python programmingBlueprints: Introduction to Python programming
Blueprints: Introduction to Python programmingBhalaji Nagarajan
Β 
C prograaming basic
C prograaming basicC prograaming basic
C prograaming basicDiameter_pb
Β 
Computer programming questions
Computer programming questionsComputer programming questions
Computer programming questionsestoredesignerclothi
Β 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#Prasanna Kumar SM
Β 
C interview questions for experienced
C interview questions for experiencedC interview questions for experienced
C interview questions for experiencedMYTHILIKRISHNAN4
Β 
1. c or c++ programming course out line
1. c or c++ programming course out line1. c or c++ programming course out line
1. c or c++ programming course out lineChhom Karath
Β 
Af7ff syllabuslablist
Af7ff syllabuslablistAf7ff syllabuslablist
Af7ff syllabuslablistMukund Trivedi
Β 
Com Ed 6 Prelim
Com Ed 6 PrelimCom Ed 6 Prelim
Com Ed 6 Prelimbluejayjunior
Β 

What's hot (19)

OO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual FunctionOO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual Function
Β 
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)
Β 
C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#
Β 
Question bank
Question bankQuestion bank
Question bank
Β 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
Β 
Oops model question
Oops model questionOops model question
Oops model question
Β 
Operator Overloading
Operator OverloadingOperator Overloading
Operator Overloading
Β 
Vtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersVtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papers
Β 
[C++ korea] effective modern c++ study item 4 - 6 μ‹ μ΄Œ
[C++ korea] effective modern c++ study   item 4 - 6 μ‹ μ΄Œ[C++ korea] effective modern c++ study   item 4 - 6 μ‹ μ΄Œ
[C++ korea] effective modern c++ study item 4 - 6 μ‹ μ΄Œ
Β 
Com Ed 6 Prelim
Com Ed 6 PrelimCom Ed 6 Prelim
Com Ed 6 Prelim
Β 
Blueprints: Introduction to Python programming
Blueprints: Introduction to Python programmingBlueprints: Introduction to Python programming
Blueprints: Introduction to Python programming
Β 
C prograaming basic
C prograaming basicC prograaming basic
C prograaming basic
Β 
Computer programming questions
Computer programming questionsComputer programming questions
Computer programming questions
Β 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#
Β 
C interview questions for experienced
C interview questions for experiencedC interview questions for experienced
C interview questions for experienced
Β 
1. c or c++ programming course out line
1. c or c++ programming course out line1. c or c++ programming course out line
1. c or c++ programming course out line
Β 
Af7ff syllabuslablist
Af7ff syllabuslablistAf7ff syllabuslablist
Af7ff syllabuslablist
Β 
Chaptr 1
Chaptr 1Chaptr 1
Chaptr 1
Β 
Com Ed 6 Prelim
Com Ed 6 PrelimCom Ed 6 Prelim
Com Ed 6 Prelim
Β 

Viewers also liked

Sajha Bus
Sajha Bus Sajha Bus
Sajha Bus Raju Dawadi
Β 
16 exception handling - i
16 exception handling - i16 exception handling - i
16 exception handling - iRavindra Rathore
Β 
Advantages Over Conventional Error Handling in OOP
Advantages Over Conventional Error Handling in OOPAdvantages Over Conventional Error Handling in OOP
Advantages Over Conventional Error Handling in OOPRaju Dawadi
Β 
FSA Mozilla Nepal III Meetup
FSA Mozilla Nepal III MeetupFSA Mozilla Nepal III Meetup
FSA Mozilla Nepal III MeetupRaju Dawadi
Β 
PHP 5 Magic Methods
PHP 5 Magic MethodsPHP 5 Magic Methods
PHP 5 Magic MethodsDavid Stockton
Β 
Constructor & destructor
Constructor & destructorConstructor & destructor
Constructor & destructorSaharsh Anand
Β 

Viewers also liked (8)

Sajha Bus
Sajha Bus Sajha Bus
Sajha Bus
Β 
16 exception handling - i
16 exception handling - i16 exception handling - i
16 exception handling - i
Β 
Advantages Over Conventional Error Handling in OOP
Advantages Over Conventional Error Handling in OOPAdvantages Over Conventional Error Handling in OOP
Advantages Over Conventional Error Handling in OOP
Β 
147301 nol
147301 nol147301 nol
147301 nol
Β 
FSA Mozilla Nepal III Meetup
FSA Mozilla Nepal III MeetupFSA Mozilla Nepal III Meetup
FSA Mozilla Nepal III Meetup
Β 
Oops
OopsOops
Oops
Β 
PHP 5 Magic Methods
PHP 5 Magic MethodsPHP 5 Magic Methods
PHP 5 Magic Methods
Β 
Constructor & destructor
Constructor & destructorConstructor & destructor
Constructor & destructor
Β 

Similar to 141303 qb

GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfAsst.prof M.Gokilavani
Β 
Cs1301
Cs1301Cs1301
Cs1301rkmythu
Β 
Bca spring driveassignments
Bca spring driveassignmentsBca spring driveassignments
Bca spring driveassignmentssolved_assignments
Β 
Smu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignmentsSmu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignmentssmumbahelp
Β 
Smu mca spring 2014 solved assignments
Smu mca spring 2014 solved assignmentsSmu mca spring 2014 solved assignments
Smu mca spring 2014 solved assignmentssmumbahelp
Β 
Smu bca winter 2013
Smu bca winter 2013Smu bca winter 2013
Smu bca winter 2013smumbahelp
Β 
SMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTSSMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTSsolved_assignments
Β 
Question Bank DS
Question Bank DSQuestion Bank DS
Question Bank DSPRIANKA R
Β 
Smu bca-sem-2-fall-2015- solved - assignments
Smu bca-sem-2-fall-2015- solved - assignmentsSmu bca-sem-2-fall-2015- solved - assignments
Smu bca-sem-2-fall-2015- solved - assignmentssmumbahelp
Β 
Bca spring driveassignments (1)
Bca spring driveassignments (1)Bca spring driveassignments (1)
Bca spring driveassignments (1)solved_assignments
Β 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetionsmshoaib15
Β 
Smu bca sem 2 winter 2015 assignments
Smu bca sem 2 winter 2015 assignmentsSmu bca sem 2 winter 2015 assignments
Smu bca sem 2 winter 2015 assignmentssolved_assignments
Β 
Oop r&amp;s may 2019
Oop r&amp;s may 2019Oop r&amp;s may 2019
Oop r&amp;s may 2019ktuonlinenotes
Β 
SMU Mca spring Solved assignments
SMU Mca spring Solved assignmentsSMU Mca spring Solved assignments
SMU Mca spring Solved assignmentssolved_assignments
Β 
Bca smu solved assignments
Bca smu solved assignmentsBca smu solved assignments
Bca smu solved assignmentssolved_assignments
Β 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programmingsoni_nits
Β 

Similar to 141303 qb (20)

GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdf
Β 
Cs1301
Cs1301Cs1301
Cs1301
Β 
Bca spring driveassignments
Bca spring driveassignmentsBca spring driveassignments
Bca spring driveassignments
Β 
Smu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignmentsSmu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignments
Β 
Oops qb cse
Oops qb cseOops qb cse
Oops qb cse
Β 
Best interview questions
Best interview questionsBest interview questions
Best interview questions
Β 
Smu mca spring 2014 solved assignments
Smu mca spring 2014 solved assignmentsSmu mca spring 2014 solved assignments
Smu mca spring 2014 solved assignments
Β 
Smu bca winter 2013
Smu bca winter 2013Smu bca winter 2013
Smu bca winter 2013
Β 
SMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTSSMU BSCIT SUMMER 2014 ASSIGNMENTS
SMU BSCIT SUMMER 2014 ASSIGNMENTS
Β 
Question Bank DS
Question Bank DSQuestion Bank DS
Question Bank DS
Β 
Smu bca-sem-2-fall-2015- solved - assignments
Smu bca-sem-2-fall-2015- solved - assignmentsSmu bca-sem-2-fall-2015- solved - assignments
Smu bca-sem-2-fall-2015- solved - assignments
Β 
Bca spring driveassignments (1)
Bca spring driveassignments (1)Bca spring driveassignments (1)
Bca spring driveassignments (1)
Β 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetions
Β 
Mid ii important quess
Mid ii important quessMid ii important quess
Mid ii important quess
Β 
Smu bca sem 2 winter 2015 assignments
Smu bca sem 2 winter 2015 assignmentsSmu bca sem 2 winter 2015 assignments
Smu bca sem 2 winter 2015 assignments
Β 
Oop r&amp;s may 2019
Oop r&amp;s may 2019Oop r&amp;s may 2019
Oop r&amp;s may 2019
Β 
SMU Mca spring Solved assignments
SMU Mca spring Solved assignmentsSMU Mca spring Solved assignments
SMU Mca spring Solved assignments
Β 
Oops 2018
Oops 2018Oops 2018
Oops 2018
Β 
Bca smu solved assignments
Bca smu solved assignmentsBca smu solved assignments
Bca smu solved assignments
Β 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
Β 

Recently uploaded

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
Β 
FULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | DelhiFULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | Delhisoniya singh
Β 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
Β 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
Β 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
Β 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
Β 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
Β 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
Β 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
Β 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
Β 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
Β 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
Β 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
Β 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
Β 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
Β 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
Β 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
Β 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
Β 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Β 
FULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | DelhiFULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY πŸ” 8264348440 πŸ” Call Girls in Diplomatic Enclave | Delhi
Β 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Β 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Β 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
Β 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Β 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Β 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
Β 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Β 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Β 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
Β 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
Β 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Β 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Β 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Β 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Β 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
Β 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Β 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Β 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Β 

141303 qb

  • 1. CS2203 OBJECT ORIENTED PROGRAMMING IIIrd Sem Question Bank UNIT – I PART – A (2 MARKS) 1. Define Object Oriented Programming. 2. Define Objects. 3. What are the features of Object oriented programming. 4. Define Encapsulation and Data hiding. 5. Define Data Abstraction. 6. Define Data members. 7. Define Member functions. 8. State Inheritance. 9. State Polymorphism. 10. List and define the two types of Polymorphism. 11. State Dynamic Binding. 12. Define Message Passing. 13. List some benefits of OOPS. 14. List out the applications of OOP. 15. What is the return type of main ()? 16. List out the four basic sections in a typical C++ program. 17. Define C++. 18. Define Token. What are the token used in C++? 19. Define identifier. What are the rules to be followed for identifiers? 20. State the use of void in C++. 21. Define an Enumeration data type. 22. Define reference variable. Give its syntax. 23. List out the new operators introduced in c++.
  • 2. 24. What is the use of Scope resolution operator? 25. List out the memory referencing operator. 26. Define Implicit Conversion. 27. What is call by reference? 28. What are inline functions? 29. State the advantages of Default Arguments. 30. Define Function overloading. 31. Define friend function. PART – B 1. Explain the basic concepts of Object oriented programming (16) 2. Explain the use of constant pointers and pointers to constant with an example.(16) 3. a. Difference between class and struct and also illustrate with an example. (8) b. What are the difference between pointers to constants and constant to pointers? (8) 4. a. Write a C++ program using inline function. (8) b. Write a C++ program to illustrate the static function (8) 5. Explain briefly about function overloading with a suitable example. (16) 6. a. Discuss constant and volatile functions. (8) b. What is linkage specification and also explain its need. (8)
  • 3. 7. Explain about call by reference and return by reference with program. (16) 8. Explain Nested classes and local classes with an example (16) UNIT – II PART – A (2 MARKS)
  • 4. 1. Define Constructor. 2. List some of the special characteristics of constructor. 3. Give the various types of constructors. 4. What are the ways in which a constructor can be called? 5. State dynamic initialization of objects. 6. Define Destructor. 7. List some of the rules for operator overloading. 8. What are the types of type conversions? 9. What are the conditions should a casting operator satisfy? 10. How the objects are initialized dynamically? PART – B 1. a. Explain the copy constructors with an example? (8) b. Explain explicit Constructors, Parametrized Constructors, and multiple Constructors with suitable example. (8) 2. a. How to achieve operator overloading through friend Function? (8) b. Write a program using friend functions for overloading <<and>>operators? (8) 3. Explain the wrapper classes with examples? (16)
  • 5. UNIT – III PART – A (2 MARKS) 1. What are types of inheritance? 2. Give the syntax for inheritance. 3. Define single inheritance. 4. Define multi-level inheritance. 5. Define multiple inheritance. 6. What is an abstract class? 7. What are the types of polymorphism? 8. Define β€˜this’ pointer. 9. What is virtual function? 10. When a function is declared as virtual, C++ determines which function to 11. What is pure virtual function? 12. Define RTTI.
  • 6. 13. What is cross casting? 14. What is down casting? PART – B 1. Explain the different types of polymorphism (16) 2. Explain various types of Inheritance. (16) 3. Describe Pure Virtual function with an example. (16) 4. Write a C++ program using this pointer. (16) 5. Write a C++ program using dynamic_const. (16) 6. Explain in detail about cross casting and down casting. (16) UNIT – IV PART – A ( 2 MARKS )
  • 7. 1. Define manipulators and also mention the manipulators that are used in C++. 2. What is the need for streams? 3. Give some of predefined streams. 4. What are the possible types that a file can be defined? 5. What are the two methods available for opening the files? 6. What is global namespace? 7. Write any four operations possible on string objects. 8. What are the advantages of using generic algorithm? 9. What is STL? 10. What is find()? 11. What are the ways that a string object can be created? PART – B 1. What are streams? Why they are useful? (16) 2. Explain about Formattted and Unformatted IO with suitable Example (16) 3. What is manipulator? Difference between manipulators and ios Function? (16) 4. Explain the process of open,read,write and close files? (16) 5. Explain the role of seekg(),seekp(),tellg(),tellp(),function in the process of random access in a binary file (16) 6. Explain about the STD Namespace (16) 7. Explain the Standard Template Library and how it is working? (16)
  • 8. UNIT – V PART – A (2 MARKS) 1. What is the need for template function in C++? What are their advantages? 2. What are the drawbacks of using macros? 3. What is Function Template? 4. What are the components of Exception Handling? 5. What is Uncaught Exception? 6. What is the terminate () functions? 7. What are the disadvantages of the exception handling? PART – B 1. Explain the Function template (16) 2. Explain the class template (16) 3. What is the need for exception handling (16)
  • 9. 4. Explain the following function 5. a) What are specifications? In which case are they needed? (8) b)What are the disadvantages of the exception handling mechanism? (8) 6. When do we need multiple catch blocks for a single try block? Give an example? (16)