PREVIOUS YEAR QUESTION PAPER

IT8303 – Programming and Data Structures II

Anna University

Regulation 2012 Semester 3 2013

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 PDF

How to Use This Question Paper

More Question Papers

Browse other previous year question papers for this subject.

View All Subject Question Papers

Question Paper Intelligence

Automatically extracted historical question data. Academic accuracy and examination rules require verification.

18Extracted entries
100Maximum marks (metadata)
UnavailableDuration (minutes)
4Choice candidates

Part-wise extracted questions

Part A1
Part B17

Question type candidates

Other Or Unclassified17
Definition1

Section marks — arithmetic candidates

Part A20 marks
Part B80 marks

Examination marks pattern

PartRequired answersMarks per answerSection total
A10220
B16580

Optional-choice evidence

Detected alternatives only. Confirm the actual choice rules in the original question paper.

Part B — Question 12: Option a · Option a · Option b · Option
Part B — Question 13: Option a · Option a · Option b · Option b
Part B — Question 14: Option a · Option a · Option b · Option b
Part B — Question 15: Option a · Option a · Option b

Question navigator

Extracted questions

Part A — 10

What is the principle behind Bellman-Ford algorithm to detect negative weight cycles? x aN ப oN DU s©

Definition
Part B — 11

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 Unclassified

Source quality review required

Part B — 11

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 Unclassified

Source quality review required

Part B — 12a

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 Unclassified

Source quality review required

Part B — 12a

a) ii) Discuss the need of a friend function with an example. (6)

Other Or Unclassified

Source quality review required

Part B — 12b

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 Unclassified

Source quality review required

Part B — 12

b ii) Explain how dynamic binding is achieved in the above hierarchy. | (6)

Other Or Unclassified

Source quality review required

Part B — 13a

a) i) Define template class Stack<> and implement generic methods to push and pop the elements from the stack. (10)

Other Or Unclassified

Source quality review required

Part B — 13a

a) ii) Write the code that creates an exception object to throw a divide by zero exception. (6)

Other Or Unclassified

Source quality review required

Part B — 13b

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 Unclassified

Source quality review required

Part B — 13b

b) ti) Discuss about the different components in STL. (6)

Other Or Unclassified

Source quality review required

Part B — 14a

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 Unclassified

Source quality review required

Part B — 14a

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 Unclassified

Source quality review required

Part B — 14b

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 Unclassified

Source quality review required

Part B — 14b

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 Unclassified

Source quality review required

Part B — 15a

a) i) Find the shortest path from each vertex to all other vertices for the graph. (10)

Other Or Unclassified

Source quality review required

Part B — 15a

a) ii) Describe how directed graphs can be traversed. — (6)

Other Or Unclassified

Source quality review required

Part B — 15b

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 Unclassified

Source quality review required

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.