How new operator differs from malloc?
Other Or UnclassifiedIT8303 – Programming & 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 & 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 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 | 5 | 16 | 80 |
Estimated time allocation
Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.
Section time budget
Optional-choice evidence
Detected alternatives only. Confirm the actual choice rules in the original question paper.
Question navigator
Extracted questions
What is the significance of Scope resolution operator?
DefinitionList out the operators that could not be overloaded as a friend.
Short DescriptionWhat 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; }
DefinitionSource quality review required
What is terminate() function in exceptions? Why do we need it?
DefinitionHow can we extend a namespace which is already defined?
Other Or UnclassifiedWhat is a Disjoint Set?
DefinitionConstruct a Binomial Heap for the following numbers: .. -10 50-23 14 57 26 34-2842 17
DesignSource quality review required
Write a recursive procedure for Depth First Search.
Other Or UnclassifiedHow do you represent a graph using Adjacency list?
Other Or Unclassifiedi) 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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
Advanced Examination Analysis
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.