PREVIOUS YEAR QUESTION PAPER

IT8202 – Programming and Data Structures

Anna University

Regulation 2012 Semester 2 2019

Question Paper Details

University Anna University
Degree B.Tech. Information and Technology
Department Information and Technology
Regulation Regulation 2012
Semester 2
Subject Code IT8202
Subject Name Programming and Data Structures
Exam Session April / May 2019
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.

9Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
0Choice candidates

Part-wise extracted questions

Part A8
Part B1

Question type candidates

Other Or Unclassified5
Definition3
Comparison1

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

Question navigator

Extracted questions

Part A — 1

Differentiate between the local variable and global variable in C?

Comparison
Part A — 2

How do you declare a variable that will hold string values and to read character by character? Write the snippet code.

Other Or Unclassified
Part A — 3

Consider the following C declaration, int main() . struct { short s[5]; union { float y; long Z; yu; 11 What is the memory requirement for variable t, ignoring alignment considerations?

Other Or Unclassified

Source quality review required

Part A — 4

How memory allocation or reallocation can be done at run time in C? List the functions in-C by which we can create amount of required memory. இ

Other Or Unclassified
Part A — 5

What are the various operations that can be performed on different data structures? What are the key differences between array and linked list.

Definition
Part A — 7

What are expression trees? Represent the following expression using a tree. (a-b) / ((c*d)+e).

Definition

Source quality review required

Part A — 8

What is extendible hashing? What is the need for it?

Definition
Part A — 9

When is a binary search best applied? Simulate with an example and compare it with linear search. 40. | How does selection sort work? Simulate with an example.

Other Or Unclassified

Source quality review required

Part B — 11

i) Illustrate Call by Value and Call by Reference with a program to swap two numbers. (10) ii) Write a C program to print numbers between 1 and 100 which are multiple of 3 using do while loop. டட (6) 12. 12. 13. 13. 14. a) i) a) ii) b) i) b) ii) b) i) b) ii) a) i) a) ii) Write a C program to read and print Student details using structure pointer. Include a Read() function, Print() function and a main() to test this code. (10) How will you declare an array of pointers. Demonstrate with an example. (6) [OR] Why files are needed? What are the types of file supported in C. Write the respective functions used to work with each type of file with example code. (10) Differentiate between function pointer and pointer 1௦ a function and explain with its syntax and snippet code. (6) Formulate an ADT to implement a Stack using arrays. (10) Write the pseudo code ‘for evaluating any postfix expression. Simulate how the following postfix expression with single digit operands is evaluated using a stack. (6) 823%/23*+51*- [OR] Write routines to insert a node and to remove a node from a singly linked list. (10) Write the following routines performed on the queue Q. (6) isEmpty (Q) — returns true if the queue is empty, false otherwise. ii. delete (6) — deletes the element at the front of the queue and returns its value. iii. insert (Q, i) — inserts the integer i at the rear of the queue. Write the algorithm to insert and delete in a Binary Search Tree. (10) The following numbers are inserted into an empty binary search tree in the given order: 10, 1, 3, 5, 15, 12, 16. What is the height of the binary search tree. Traverse ihe obtained tree in preorder and postorder. (6) [OR] 14. 15. b) ii) Explain the following collision resolving methods in Hashing and demonstrate with Suitable example. i. Open addressing schemes ii. Rehashing : (10) What is the advantage of Separate chaining over Open addressing? Demonstrate the insertion of keys 5, 28, 19, 15, 20, 33, 12, 17, 10 into a hash table with.coliisions resolved by chaining. Let the hash table have 7 slots, and let the hash function be h(k) = k mod 7. Draw the hash table after each insertion. (6) Write the algorithm to sort an array of integers using Quicksort. (10) Sort the given set of values using Insertion sort. 49,210, 121.5, 6: (6) [OR] Write the algorithm to sort using Shell sort. (10) What is Binary Heap? What representation is used for storing Binary Heap? Apply Heap sort for the elements 12, 11, 13, 5, 6, 7. (இ)

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.