Wednesday, September 21, 2016

EC2202 Data Structures and Object Oriented Programming in C++ Nov Dec 2009 Question Paper

Anna University Chennai
Third Semester
Electronics and Communication Engineering
(Regulation 2008)
Time : Three hours
Maximum : 100 Marks
Answer ALL Questions
PART A — (10 × 2 = 20 Marks)
1. When do we declare a member of a class static?
2. Why is it necessary to overload an operator?
3. What is an abstract class?
4. What does ‘this’ pointer point to?
5. What is deque?
6. What is a heap and mention its types?
7. What is AVL tree?
8. When does a graph become tree?
9. What is the worst case and best case time complexity of binary tree sort?
10. What is indexed sequential search?

PART B — (5 × 16 = 80 Marks)
11. (a) (i) What is a friend function? What are the merits and demerits of using friend function? (8)
(ii) Define a class ‘string’. Use overload ‘= =’ operator to compare two strings. (8)
(b) (i) What is a parameterized constructor? Explain with example. (8)
(ii) What is a conversion function? How is it created? Explain its syntax. (8)

12. (a) (i) Describe the syntax of multiple inheritance. When do we use such an inheritance? (10)
(ii) What is a virtual function? When do we make a virtual function ‘‘pure’’? (6)
(b) (i) What is a file mode? Describe the various file mode options available. (8)
(ii) What is an exception? How is an exception handled in C++? (8)

13. (a) Define double linked list. Explain the various operations of double linked list with algorithm. (16)
(b) (i) What is hashing? Explain the various hash functions with example. (10)
(ii) What is priority queue? Discuss the array implementation of priority queue. (6)

14. (a) Discuss the different methods of traversing a binary tree with algorithm. (16)
(b) Discuss Prim’s and Kruskal’s algorithm for computing the minimal spanning tree weighted undirected graph. (16)

15. (a) (i) Write a ‘C’ program to implement binary search and compute its complexity. (8)
(ii) Compare the worst case and best case time complexity of various sorting techniques. (8)
(b) Explain the all pairs shortest path algorithm with an example. (16) 
Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!


Pen down your valuable important comments below

Search Everything Here