PREVIOUS YEAR QUESTION PAPER

CS8251 – Data Structures and Object Oriented Programming in C++

Anna University

Regulation 2012 Semester 2 2014

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 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 Unclassified11
Definition6
Numerical1

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 12: Option a · Option b
Part B — Question 13: Option a · Option b
Part B — Question 15: Option a · Option b

Question navigator

Extracted questions

Part A — 1

When will you make a function inline? Why?

Other Or Unclassified
Part A — 2

What are the differences between Class and Structure in C++?

Definition
Part A — 3

What are Abstract class and Concrete class?

Definition
Part A — 4

Give 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 Unclassified
Part A — 5

What is Doubly linked list? Give its advantage.

Definition
Part A — 6

Evaluate the following postfix expression using stack. 8 6 2 + *4 3 1 - / -

Numerical

Source quality review required

Part A — 7

What is Complete and Full binary tree?

Definition
Part A — 8

What is topological sort? Give example.

Definition
Part A — 9

Show the result of sorting the following numbers using insertion sort (step by step o/p) 8,3,5,2,9,7,1

Other Or Unclassified

Source quality review required

Part A — 10

What are Big-O, Theta and Omega Notations? Give the notations for the following time complexity function f(n)=8n 2+7n+6

Definition

Source quality review required

Part B — 11

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 Unclassified

Source quality review required

Part B — 12a

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 Unclassified

Source quality review required

Part B — 12b

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 Unclassified

Source quality review required

Part B — 13a

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 Unclassified

Source quality review required

Part B — 13b

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 Unclassified

Source quality review required

Part B — 14a

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 Unclassified

Source quality review required

Part B — 15a

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 Unclassified

Source quality review required

Part B — 15b

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 Unclassified

Source quality review required

Advanced Examination Analysis

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