What is the principle behind Bellman-Ford algorithm to detect negative weight cycles? x aN ப oN DU s©
DefinitionIT8303 – Programming and Data Structures II
Anna University
Question Paper Details
| University | Anna University |
|---|---|
| Degree | B.Tech. Information and Technology |
| Department | Information and Technology |
| Regulation | Regulation 2012 |
| Semester | 3 |
| Subject Code | IT8303 |
| Subject Name | Programming and Data Structures II |
| Exam Session | November / December 2013 |
| Duration | Three hours |
| Maximum Marks | 100 |
View Question Paper PDF
Access the previous year question paper for your examination preparation.
View / Download PDFHow to Use This Question Paper
- Understand the examination pattern.
- Practise questions within the allotted time.
- Identify topics that require further revision.
- Compare with other previous year papers.
More Question Papers
Browse other previous year question papers for this subject.
View All Subject Question PapersQuestion Paper Intelligence
Automatically extracted historical question data. Academic accuracy and examination rules require verification.
Part-wise extracted questions
Question type candidates
Section marks — arithmetic candidates
Examination marks pattern
| Part | Required answers | Marks per answer | Section total |
|---|---|---|---|
| A | 10 | 2 | 20 |
| B | 16 | 5 | 80 |
Optional-choice evidence
Detected alternatives only. Confirm the actual choice rules in the original question paper.
Question navigator
Extracted questions
i) Define a class Travel in C++ with private members Travel_Code, Place_of_ type No_of_travellers and No_of_buses. A constructor to assign initial values for the members. A function NewTravel( ) which allows user to enter values. A function ShowTravel( ) to display the content from all the data members on screen. (10)
Other Or UnclassifiedSource quality review required
ii) When do we need to use default arguments in a function? Where does the default parameter can be placed by the user? Write a snippet code to explain. (6)
Other Or UnclassifiedSource quality review required
a) i) Write a program to implement a Ratio class with members num, den. Overload arithmetic operator “+”, relational operator “= =”, stream operators that operate on the objects of Ratio and a conversion operator to convert a Ratio object to a double value.. (10)
Other Or UnclassifiedSource quality review required
a) ii) Discuss the need of a friend function with an example. (6)
Other Or UnclassifiedSource quality review required
b)i) Define a class Shape with constructor, destructor and pure virtual functions GetArea() , GetPerim() and Draw(). Derive classes Circle and Rectangle from Shape. Derive another class Square from Rectangle. Implement this hierarchy with constructors, destructors and essential functions. Write a main. (10)
Other Or UnclassifiedSource quality review required
b ii) Explain how dynamic binding is achieved in the above hierarchy. | (6)
Other Or UnclassifiedSource quality review required
a) i) Define template class Stack<> and implement generic methods to push and pop the elements from the stack. (10)
Other Or UnclassifiedSource quality review required
a) ii) Write the code that creates an exception object to throw a divide by zero exception. (6)
Other Or UnclassifiedSource quality review required
b) i) Write a C++ program that writes into an existing file without destroying the existing contents and read from the file to display the file contents. (10)
Other Or UnclassifiedSource quality review required
b) ti) Discuss about the different components in STL. (6)
Other Or UnclassifiedSource quality review required
a) i) Perform the splaying operation on a binary search tree obtained by inserting the keys 1, 2; 3, 4, 5, 6, 7, 8 in this order into an initially empty tree. Write the code to do the same (splay and insert). ் (10)
Other Or UnclassifiedSource quality review required
a) ii) On an initially empty binomial heap, carry out the following sequence of operations: insert(27), insert(17), insert(19), insert(20), insert(24), insert(12), insert(11), insert(10), insert(14), insert(18), deletemin. After each operation, draw the resulting structure of the binomial heap. (6)
Other Or UnclassifiedSource quality review required
b) i)Construct an AVL tree with values 3, 1, 4, 5, 9, 2, 6, 8, 7, O into an initially empty tree. Write the code for inserting into an AVL tree. (10)
Other Or UnclassifiedSource quality review required
b) ii) Construct a B-tree with order m=3 for the key values 2, 3, 7, 9, 5, 6, 4, 8, 1. Delete the values 4 and 6. Show the tree in performing all operations. (6)
Other Or UnclassifiedSource quality review required
a) i) Find the shortest path from each vertex to all other vertices for the graph. (10)
Other Or UnclassifiedSource quality review required
a) ii) Describe how directed graphs can be traversed. — (6)
Other Or UnclassifiedSource quality review required
b) i) What is a Minimum Spanning Tree? Name any two Minimum Spanning Tree - (MST) algorithms. For a graph G given below, find its minimum spanning tree by explaining any one algorithm. (16)
Other Or UnclassifiedSource quality review required
Advanced Examination Analysis
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.