Anna University -Study Materials for all Departments Latest News


CS2203/8023004/CS1202/CS35/1044 CS304 Object Oriented Programming(OOP) 16 Marks (Part B )Question Bank


Anna university
B.E/B.Tech Degree Examination 
Department of Computer science and Engineering and Information Technology

Question Bank
(Regulation 2008)
___________________________________________________________________________________
Details:
Year: second Year
Department: B.E Computer Science and Engineering/B. Tech Information Technology
Semester:Three
Content: CS2203/8023004/CS1202/CS35/1044 CS304 Object Oriented Programming (OOP's)
16 Marks(Part B) Question Bank 
Subject code: CS2203/8023004/CS1202/CS35/1044 CS304
Subject Name: Object Oriented Programming (OOP's)




UNIT-1

PART- B Questions

1. Explain in details about the concepts of OOPs? (16)
2. (a) Explain in detail about Programming Elements (8)
(b) What are Enumeration types? Explain in detail. (8)
3. Explain in detail about the following terms with example programs
(i)Function Invocation (8)
(II)Function Prototypes (8)
4. (a) What is meant by Default arguments? Give example program (8)
(b)Define Function Overloading? Explain the example program. (8)
5. (a)Explain in detail about Scope class (8)
(b)Explain in detail about Storage class with example program (8)
6. (a)Write short notes on Pointer Types (8)
(b)What is meant by Assertion? Give example program (8)
7. Explain in detail about
(i)Arrays and Pointers (8)
(ii)Standard Template Library (STL) (8)






Unit-2
PART- B Questions

1. Explain in detail about Structure with syntax and write example program. (16)
2. (a) Define Union. Explain with example program. (8)
(b) Explain in detail about Bit -Field Structures. (8)
3. (a)Define Member Function and explain in detail about function inside
the class body with example program . (8)
(b)What is Parameterized constructor? Give syntax and example program (8)
4. Define Member Function and explain in detail about function outside the class
body with example program. (16)
5. (a) What is Default constructor? Give syntax and example program (8)
(b) What is Copy constructor? Give syntax and example program (8)
6. Write short notes on
i. Static Member function (8)
ii. This Pointer (8)
7. What is Destructor? Give syntax and example program (16)
8. Write short notes on
i. Classes with necessary syntax and example program (8)
ii. Reference Semantics (8)




Unit-3

PART - B Questions

1. (a)Write short notes on Abstract Data Type (ADT) Conversions. (8)
(b)Explain in detail about Unary Operator Overloading with example program. (8)
2. (a)Explain in detail about Binary Operator Overloading with example program. (8)
(b)Define Function selection algorithm. Explain it with one example program. (8)
3. (a)Explain in detail about Pointer Operators. (8)
(b).Explain in detail about Pointer to class member with example program (8)
4. (a)Explain in detail about Friend Function with example program. (8)
(b)Discuss about the Over loadable Operators. (8)



Unit-4

PART – B

1. (a) What are the differences between the accesses specifies private and protected? (8)
(b) What are base and derived classes? Write a program to use these classes (8)
2. (a)What are the different forms of inheritance? Explain with an example. (8)
(b)What is class hierarchy? Explain how inheritance helps in building class hierarchies.(8)
3. What is visibility mode? What are the different visibility modes supported by C++? (16)
4. What are the differences between inheriting a class with public and private visibility
mode? (16)
5. (a)What are virtual classes? Explain the need for virtual classes while building class(8)
(b) What are abstract classes? Explain the role of abstract class while building a class
Hierarchy. (8)
6. Discuss cost and benefits of inheritance (16)
7. (a) Justify the need for virtual functions in C++. (8)
(b) What are the rules that need to be kept in mind in deciding virtual functions? (8)
8. (a) Explain code reuse with suitable example. (8)
(b) Explain the details about runtime type identifications with suitable example
program. (8)
9. Explain the details about exception handling. (16)



UNIT-5

PART – B

1. What is generic programming? What are its advantages and state some of its
applications? (16)
2. What is Function template? Write a suitable example program. (16)
3. (a) Explain how the compiler process calls to a function template. (8)
(b) Explain overloaded function templates. With suitable example program. (8)
4. (a) Explain multiple arguments function templates. (8)
(b) Define user defined template arguments. (8)
5. What is a class template? Explain the syntax of a class template with suitable
program. (16)
6. (a) Draw console stream class hierarchy and explain its members. (8)
(b) Explain the various methods of performing formatted stream I/O operations. (8)
7. What are manipulators? List the various predefined manipulators supported by c++
i. I/O streams. (8)
ii. Explain how standard manipulators are implemented. (8)
8. (a)What is a File? What are steps involved in manipulating a file in a C++ programs?
(8)
(b)What are the different types of error that might pop-up while processing files? (8)
9. What are file modes? Describe various file mode options available? (16)
10. (a) What are file pointers? Describe get-pointers and put-pointers? (8)
(b) What are the differences between sequential and random access files? (8)
11. (a) What are Exceptions? What are the differences between synchronous and
asynchronous exceptions? (8)
(b) Write a program to demonstrate the catching of all exceptions. (8)
12. List the ten rules for handling exceptions successfully. (16)
___________________________________________________________________________________










Search Terms: CS2203,8023004,CS1202,CS35,1044 CS304 ,Object Oriented Programming  OOP's,2 Marks Question Bank,Question Bank,Anna University chennai Object Oriented Programming   2 Marks Question Bank,Anna University Thiruchirapalli Object Oriented Programming   2 Marks Question Bank,Anna University Thirunelveli Object Oriented Programming   2 Marks Question Bank,Anna University Coimbatore Object Oriented Programming   2 Marks Question Bank,









Share on Google Plus
    Blogger Comment

0 comments:

Post a Comment