April / May 2013
PROGRAMMING AND DATA STRUCTURES II
Anna University
1 question papers available. Select an examination session to view its question paper.
PROGRAMMING AND DATA STRUCTURES II
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
State any two differences between copy constructor and assignment operator.
1 eligible source papersWhat are Const objects and how can it be accessed?
1 eligible source papersCan the assignment operator (= ) be overloaded as friends? Justify ப்
1 eligible source papersWhat do you mean by Large object?
1 eligible source papersWhat are the disadvantages of multiple inheritance?
1 eligible source papersState any two instances to use virtual function instead of normal function.
1 eligible source papersConsider a scenario of selling the services of a machine over a fixed time period(day or month). Each user pays a fixed amount per use but the time needed by each user is different. Specify a suitable data structure to maximize the earning from this machine.
1 eligible source papersCompare and contrast AVL tree and Red-Black tree based on performance.
1 eligible source papersState the data structure and its two useful operations to determine the connected components of an undirected graph.
0 eligible source papersWhat do you mean by spanning tree and minimum spanning tree?
1 eligible source papersa Write a C++ program to create 3 X 3 matrix template class to perform the following operations. , (16) i) Add two matrix ii)Multiply 3 * M4 (iti)Increment M1++, ++M1 iv)Display matrices using >>,<< operators
0 eligible source papersa (i)Write a program that takes an integer from the base class and converts it in to binary, octal and hexadecimal number through derived classes. The member functions of the class shares the same name and invoked via base class pointer. (8) {ii)Write a C++ program to perform insert, copy, compare, concat, clear, extract operations on String class. (8) [OR] b. (i)What are the different forms of inheritance and choose the suitable form of inheritance to implement the Figure 1. (10) Vehicie name maxPassengers maxSpeed LandVehicte SeaVessel numVheels ; displacement பொடு ் faunch(} Jeep Hovercraft Frigate soundHorn() enterLand(?) fireGunt} ் enterSea()} Figure. 1 (ii)Write a C++ program to provide “safe array” operations using array subscript operator for queue class. ; (6)
0 eligible source papersa (i)Write a class The exception which contains member functions for displaying messages regarding stack underflow and stack overflow, and when overflow occurs ,it asks for increasing the stack size. Use dynamically allocated array to implement stack. (10) (ii)Write a program to determine which type (derived class) of objects is pointed by a base class pointer. (6) [OR] b. (i)Write a program that to draw the following figure 2 on the frame. (10) Figure. 2 (ii)Write a program to show explicitly when and where the copy constructor will be is invoked implicitly. , (6)
0 eligible source papersa Write a program to implement the binary search tree with the following added functions. (i) Insertion (ii) tree traversals (iii) find mirror image of a given binary search tree (16) [OR] b. Write a program that constructs a height balanced tree by performing single rotations and double rotations during insertion and deletion operations. (16)
0 eligible source papersa Write a program that determines minimum spanning tree of an undirected graph using. © prim’s algorithm. Illustrate with example. (16) [OR] ட. (i)Write a program to perform topological sort (8) (ii) Write a program to determine articulation points in an undirected graph . (8)
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.