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

Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
Ahammed Alamin
 
Oops model question
Oops model questionOops model question
Oops model question
SANTOSH RATH
 

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 (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

Smu mca spring 2014 solved assignments
Smu mca spring 2014 solved assignmentsSmu mca spring 2014 solved assignments
Smu mca spring 2014 solved assignments
smumbahelp
 

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

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

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)