What is the use of reference variables and static variables? Give examples 2
DefinitionSource quality review required
Anna University
| University | Anna University |
|---|---|
| Degree | B.Tech. Information and Technology |
| Department | Information and Technology |
| Regulation | Regulation 2015 |
| Semester | 3 |
| Subject Code | IT7303 |
| Subject Name | Object Oriented Programming and Advanced Data Structures |
| Exam Session | November / December 2021 |
| Duration | 3hrs |
| Maximum Marks | 100 |
Access the previous year question paper for your examination preparation.
View / Download PDFBrowse other previous year question papers for this subject.
View All Subject Question PapersAutomatically extracted historical question data. Academic accuracy and examination rules require verification.
| Part | Required answers | Marks per answer | Section total |
|---|---|---|---|
| A | 10 | 2 | 20 |
| B | 5 | 13 | 65 |
| C | 1 | 15 | 15 |
Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.
Detected alternatives only. Confirm the actual choice rules in the original question paper.
What is the use of reference variables and static variables? Give examples 2
DefinitionSource quality review required
What is an abstract class? 2
DefinitionSource quality review required
void foo(int &x, int *y, int z , int *& a) 2 { x = 5; a = &x; *a = 8 ; *y = 6; z = 7; } int main() { int i =4; int * j = &i; foo(i , &i , i , j); cout << i << endl; return 0; }
Other Or UnclassifiedSource quality review required
Write the code that creates an exception object to throw a divide by zero exception. 2
Other Or UnclassifiedSource quality review required
Briefly explain about BFS with an example. 2
Other Or UnclassifiedSource quality review required
What is the difference between Binomial Heaps and Fibonacci Heaps? 2
DefinitionSource quality review required
How topological sort is differing from DFS? List out atleast four points 2
Other Or UnclassifiedSource quality review required
What is meant by graph traversal? Explain with suitable diagram 2
DefinitionSource quality review required
What is the difference between directed and undirected graph? 2
DefinitionSource quality review required
What is flow networks? List out two of it application 2
DefinitionSource quality review required
(a) (i) Explain the use of the following with example. 8 i) Copy constructor ii) Dynamic constructor iii) Dynamic initialization of objects (ii) Write the code to implement a MyString class that satisfies the following: 5 i) Addition of two strings (concatenation) - should be a friend function ii) Count the no of MyString objects created. (include static data member and static member function) iii) Provide methods with char* argument.
Other Or UnclassifiedSource quality review required
(b) (i) How to manage run time Polymorphism in a function by passing objects as 13 reference.
Other Or UnclassifiedSource quality review required
(a) (i) Write a generic program using template to print the array class as {1 2 3 4 5} 4 (ii) Write a program to search a key element in a given array of elements using 9 class template. Have generic search function that takes any data type and an overloaded search function that works for an integer element only.
Other Or UnclassifiedSource quality review required
(b) (i) Explain in detail about the four component of STL in detail with suitable 13 examples.
Other Or UnclassifiedSource quality review required
(a) (i) Construct a B - Tree for the elements 35, 20, 40, 50, 78, 10, 29, 55, 32, 60, 53, 6 90, 21, 25 using order 3. Delete 50, 29. (ii) Construct a Red Black tree for the elements 30, 25, 40, 50, 75, 10, 29, 65, 32, 7 60, 53, 90, 21, 25. Delete 50, 29.
Other Or UnclassifiedSource quality review required
(b) (i) Construct an AVL tree with values 3,2,1,4,8,6,7,16,11,14 into an initially empty 13 tree. Delete 4 from the tree. Clearly show the tree that results after each insertion, and make clear any rotations that must be performed. Write a routine to remove all leaf nodes from the tree. (Need to write the delete routine)
Other Or UnclassifiedSource quality review required
(a) (i) Construct the minimum spanning tree (MST) for the given graph using 13 Kruskal’s Algorithm
Other Or UnclassifiedSource quality review required
(b) (i) Trace the shortest path from A using Dijikstra's algorithm 13 Find a minimum spanning tree for the same graph using Prim's algorithm.
Other Or UnclassifiedSource quality review required
(a) (i) Construct the eulerian cycle for the values {1,0,3,4,0,2,1}. Explain step by step 13 execution for construction of cycle.
Other Or UnclassifiedSource quality review required
(b) (i) Assume A = {1, 2, 3, 4} and let R be the relation on A whose matrix is 13 described as follows: [ ] Use Warshall's algorithm to compute
Other Or UnclassifiedSource quality review required
(i) Use Floyd's algorithm to compute the distance matrix for the digraph whose 15 edge- weight matrix is: [ ]
Other Or UnclassifiedSource quality review required
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.