When will you make a function inline? Why?
Other Or UnclassifiedCS8251 – Data Structures and Object Oriented Programming in C++
Anna University
Question Paper Details
| University | Anna University |
|---|---|
| Degree | B.E. Electronics and Communication Engineering |
| Department | Electronics and Communication Engineering |
| Regulation | Regulation 2012 |
| Semester | 2 |
| Subject Code | CS8251 |
| Subject Name | Data Structures and Object Oriented Programming in C++ |
| 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 are the differences between Class and Structure in C++?
DefinitionWhat are Abstract class and Concrete class?
DefinitionGive the public, protected and private member of Class D Class B { Private: intx; protected: int y; public: int z; } Class D: private B { public: int d; : } • .
Other Or UnclassifiedWhat is Doubly linked list? Give its advantage.
DefinitionEvaluate the following postfix expression using stack. 8 6 2 + *4 3 1 - / -
NumericalSource quality review required
What is Complete and Full binary tree?
DefinitionWhat is topological sort? Give example.
DefinitionShow the result of sorting the following numbers using insertion sort (step by step o/p) 8,3,5,2,9,7,1
Other Or UnclassifiedSource quality review required
What are Big-O, Theta and Omega Notations? Give the notations for the following time complexity function f(n)=8n 2+7n+6
DefinitionSource quality review required
i) Create a Class String( Data members- string and length). Use copy constructor and Dynamic constructor to initialize the string object. (6) ii) Define a class Date (Data members- years, months and days). Write a code to overload the following operators using Friend function. (C1.C2 &C3 are Date objects) (10) A. C2++ B. C1=C2+C3 C. Find the age of a person. AGE=C1-C2. (C1-current date C2- Dateofbirth, Age is no of years)
Other Or UnclassifiedSource quality review required
a) i) What is Multiple inheritance and Hybrid inheritance? What are the problems will occur in these inheritances? How do you solve it? Give example code and explain. (10) ii) Define a class Student (Data member- Name, Reg.no, age. Member function - Display). Create array of students and a pointer pointing to array of students. Write a function Display to display the details of all the students using the pointer. (6)
Other Or UnclassifiedSource quality review required
b) i) How do you achieve runtime polymorphism? Give an example and explain. (8) ii) Define a class Time (Data members- hr, min &sec). Write a code to perform the following type conversions (8) A. int no_of_seconds=800 time t= no_of_seonds . // Basic to class (int to time) B. int no_of_seconds= t //class to basic (time to int)
Other Or UnclassifiedSource quality review required
a) i) Write a code to implement a Stack using array. Also write a routine to check whether a given string is Palindrome or not by using stack. (10) ii) Write a procedure to add the two Polynomial linked list. (6)
Other Or UnclassifiedSource quality review required
b) i) Write the functions to perform the following operations in a Linked list (12) A. insert at the end (3) B. Insert at specified location (3) C. Find and delete a node (3) D. Display (3) ii) Write a routine for insertion in a circular queue using array. Clearly specify the queue full condition. (4)
Other Or UnclassifiedSource quality review required
a) i) Write the Pseudo code for Dijikstra's shortest path algorithm. Trace the algorithm for the following graph. (8) ii) Give the preorder, postorder and inorder traversals for the following tree. (6) A \ / H N b) i) Write the function to perform insertion and deletion in a binary search tree. Show the result of inserting 5, 3, 8, 4, 9, 1, 7, 10, 2 into an empty binary search tree. (11) ii) Give the adjacency list and adjacency matrix representation of the following graph. (5) 10 / 4 / 8 1 / \ 9 \ \ 1 / 8 / 2 c @
Other Or UnclassifiedSource quality review required
a) i) Write a routine for Quick Sort and explain with example. (8) ii) Sort the following numbers using Heap sort. 60,100,90,45,120,20,30,10,150,88,75,58,130. (Show step wise o/p) (8)
Other Or UnclassifiedSource quality review required
b) i) Write a function to perform Merge sort. Give example. (8) ii) Discuss the Best case; worse case and average case analysis of linear search and binary search algorithm (8)
Other Or UnclassifiedSource quality review required
Advanced Examination Analysis
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.