PREVIOUS YEAR QUESTION PAPER

IT8303 – Programming & Data Structures II

Anna University

Regulation 2012 Semester 3 2014

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 & Data Structures II
Exam Session April / May 2014
Duration 3 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)
180Duration (minutes)
3Choice candidates

Part-wise extracted questions

Part A10
Part B8

Question type candidates

Other Or Unclassified12
Definition4
Short Description1
Design1

Section marks — arithmetic candidates

Part A20 marks
Part B80 marks

Examination marks pattern

PartRequired answersMarks per answerSection total
A10220
B51680

Estimated time allocation

Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.

Section time budget

Part A36.0 min
Part B144.0 min

Optional-choice evidence

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

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

Question navigator

Extracted questions

Part A — 1

How new operator differs from malloc?

Other Or Unclassified
Part A — 2

What is the significance of Scope resolution operator?

Definition
Part A — 3

List out the operators that could not be overloaded as a friend.

Short Description
Part A — 4

What is the output of this program? #include <iostream> #include <string> using namespace std; int main () { string str ("I like to code in C"); unsigned sz = str.size(); str.resize (sz + 2,'+'); str.resize (14); c o u t « str«'\n'; return 0; }

Definition

Source quality review required

Part A — 5

What is terminate() function in exceptions? Why do we need it?

Definition
Part A — 6

How can we extend a namespace which is already defined?

Other Or Unclassified
Part A — 7

What is a Disjoint Set?

Definition
Part A — 8

Construct a Binomial Heap for the following numbers: .. -10 50-23 14 57 26 34-2842 17

Design

Source quality review required

Part A — 9

Write a recursive procedure for Depth First Search.

Other Or Unclassified
Part A — 10

How do you represent a graph using Adjacency list?

Other Or Unclassified
Part B — 11

i) Write a C++ program to represent a Vector using classes. Include member functions to perform the following tasks: a. To create a Vector b. To multiply it by a Scalar c. Display of Vector. (8) ii) Create a Class named 'MATRIX' of size m*n. Define a friend function to find the transpose of MATRIX. (8)

Other Or Unclassified

Source quality review required

Part B — 12a

a) i) What is RTTI? Where do we require? Explain the significance of it with few cases. (6) ii) Write a C++ program to develop a polynomial class consisting of a coefficient and an exponent part. Overload an assignment operator to assign one polynomial to another using friend function. (10) (OR) *- b) i) Create a class named employee with data members first name, last name and member functions: earnings (Pure Virtual function) and Print(Virtual function). Derive a class called boss from employee and its data member is weekly salary and member function: set_weekly_salary. Calculate and print the earnings appropriately. (10) ii) How is protected access specifier different from other access specifiers while inheriting a class? Explain with an example. (6)

Other Or Unclassified

Source quality review required

Part B — 13a

a) i) Write a C++ program that uses a Stack object to determine whether a String is palindrome or not using Class Templates. (8) ii) Write a C++ program to read a text file and count & display the total number of alphabets and numbers present in it. (8)

Other Or Unclassified

Source quality review required

Part B — 13b

b) i) Create a Listl consisting of even numbers and a List2 with odd numbers. Sort both of the lists appropriately and Merge two sequences of numbers to produce List3 and display the values of List3. (Make use of the LIST header file from STL). (8) ii) Write a C++ program to calculate the current age of a person by accepting his date of birth. Raise an exception if the age is negative. (8)

Other Or Unclassified

Source quality review required

Part B — 14a

a) i) Show the result of inserting the following keys into an initially empty Red-Black Tree: 85, 15, 70, 60, 30, 50, 110, 40. Further delete the keys 60, 30, 15 from the above. (6+4) ii) Explain the various types of Amortized analysis in detail. (6)

Other Or Unclassified

Source quality review required

Part B — 14b

b) i) Simulate the result of inserting the following keys into an initially empty B-Tree: I.J.K.C.V.G.M.R.NAB.X.Y.P.D.Z.L.H.Q.S.F.E with minimum order 5. Further delete the keys F, M, G, R from it. (8) ii) Write a suitable routine to insert nodes into an AVL tree with appropriate rotations. (8)

Other Or Unclassified

Source quality review required

Part B — 15a

a) i) Compute All-Pair shortest path for the following graph using Floyd-Warshall algorithm (10) 3 1 1 1 ii) How do you construct a minimum spanning tree using Kruskal's algorithm. Explain with an example. (6)

Other Or Unclassified

Source quality review required

Part B — 15b

b) i) Write Bellman Ford algorithm and compute shortest path for the following^raph using it. (Assume Vertex 1 as the source node) (10) 8 i / ii) Write a suitable algorithm to sort the edges of a graph using Topological Sort. Also show the simulation of the above algorithm with an example. (6) *********************

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.