Object Oriented Programming 1



SUB.CODE / NAME: CS1202- Object Oriented Programming YEAR / SEM:II / III UNIT – I OBJECTS AND CLASSES Part-A (2 - Marks) 1. What are the features of Object Oriented Programming? 2. Define Object and class. 3. Compare procedural language and object oriented language 4. Define Encapsulation and Data Hiding. 5. Define data members and member functions. 6. What is meant by message passing? 7. List out the basic concepts of Object Oriented Programming. 8. What are the advantages of Object oriented language? 9. List out the applications of OOP. 10. State Dynamic Binding. 11. What is the use of scope resolution operator? 12. Define friend function and explain its characteristics. 13. Differentiate member function and friend function in overloading. 14. Define an abstract class and concrete class. 15. Define static member function? 16. Define volatile function. 17. Define Local class.

Kings College Of Engineering, Punalkulam.

4. Write a program to overload assignment operator. What is overloaded constructor? Part-B 1. (08) (08) Kings College Of Engineering. Define Destructor. What is meant by Typecasting? 11. 10. b. (16) Unit II CONSTRUCTORS AND OVERLOADING Part-A (2 . What is the difference between Explicit and Implicit casting? 7. What is use of Assignment Operator? 8. Define Access Specifier and also explain its types. Explain the Friend class and Friend function with examples. What is a Constructor? 2. List out the limitations of function overloading. 15. (16) (16) (16) (08) (08) (08) (08) 6. 14. b. Explain Nested and Local classes with necessary examples. 3. . What is the use of Constructor with Dynamic allocation? 9. Define Copy constructor. a. Write a program to convert int to double using typecasting operator. a. 5. Discuss in detail about OOPS concepts. Punalkulam.Object Oriented Programming 1 Part-B 1. List out the operators that cannot be overloaded. What is meant by virtual destructors? 12. Define explicit constructor. Difference between overloading and overriding? 13. Describe in detail about constant objects.Marks) 1. Explain Default Arguments. 4. a. Explain in detail about Static data members and member function in C++. b. 3. 2. Define default constructor. What is Operator Overloading? 5. 6. Explain in detail about Function Overloading.

Mention the limitations of RTTI. 4. What is meant by RTTI? 9. Part-B 1. Explain a Multilevel. Explain the various typecasting operators with example. Give the use of dynamic_cast operator. State Inheritance. 6. Write a program to overload arithmetic operators through friend function. What are Virtual Functions? 5. Multiple and Multipath inheritance. 3. (16) 3. What is up casting? 10. a. Copy constructor and Destructor. Write the advantages of multiple Inheritance. Mention the need of Virtual base class. 4. Define Polymorphism and also list the types of polymorphism. What is meant by pure virtual function? 7. Write a program to implement Constructor. Explain the composite object with necessary example. Write a program to overload binary operator using complex numbers. 2. . 5. Punalkulam. 14. (16) (16) (16) (16) (08) (08) (16) (16) Kings College Of Engineering. Explain type conversion and its types. What are composite objects? 8. What is down casting? 11. What is cross casting? 12. b. Unit III INHERITANCE AND POLYMORPHISM Part-A (2-Marks) 1. Describe about RTTI in detail. 15. (16) 4. 3. Explain default and parameterized constructor with example. What are Virtual members? 6.Object Oriented Programming 1 2. Write a program for overloading new and delete operators. 13. Give the use of typeid operator. 2.

3. 5. What is meant by ifstream? 13. (16) (16) (16) (16) (16) (16) (16) (16) Kings College Of Engineering. 2. Explain the various substring operations available in ANSI C++ Strings. 4. Unit IV FILE HANDLING Part-A (2-Marks) 1. List out the STL Containers. What is the need of STL? 15. 16. 5. Differentiate c strings with c++ strings. Define Manipulators. 14. 9. 2. Define Object Serialization. 11. Mention the types of Manipulators. 4. Explain Down casting and Cross casting with example. . Give the use of ios::showbase. Name some File Modes. Explain the hierarchy of File Stream Classes. Explain in detail about Formatted IO in C++. Part-B 1. Define setf(). 10. 8. Discuss about STL in detail. Define File object. Explain Namespaces in detail. What is meant by namespaces? 3. What is meant by STL? 7.Object Oriented Programming 1 5. 6. List out the advantages and disadvantages of STL. Give the use of tellg() and seekg() functions. Write the syntax for File open and close. 17. Punalkulam. Define Stream. 12. 7. Explain about STL in detail with necessary example. 6. Explain in detail about Manipulators.

Define Template. Write a program to demonstrate the use of throw within and outside a function. What is meant by multi-catch Exception? 12. Define try and catch. Differentiate between polymorphism and templates. . it with traditional error handling. Punalkulam. 6. (16) (16) (16) (16) (16) 4. Define Terminate Functions 7. Discuss about templates and its types with example. What is meant by Function Template? 4. 9. Kings College Of Engineering. 2. List out some Exceptions used in C++. 10. List out the several levels of exception safety. What is class Template? 3. 15. Define Exception Specification. 5. What does std::uncaught_exception () do? 14. Explain the Components of Exception Handling Mechanism and also compare 5. 13.Object Oriented Programming 1 Unit V TEMPLATES AND EXCEPTION HANDLING Part-A (2-Marks) 1. Define Exception Handling. 3. Mention the types of Error. What is use of rethrow? 11. Part-B 1. What is meant by Uncaught Exception? 8. Describe in detail about Unexpected and Terminate Functions. Explain in detail about Exception Handling in C++. 2.

Sign up to vote on this title
UsefulNot useful