Differentiate between the local variable and global variable in C?
ComparisonIT8202 – Programming and Data Structures
Anna University
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 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
Question navigator
Extracted questions
How do you declare a variable that will hold string values and to read character by character? Write the snippet code.
Other Or UnclassifiedConsider 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 UnclassifiedSource quality review required
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 UnclassifiedWhat are the various operations that can be performed on different data structures? What are the key differences between array and linked list.
DefinitionWhat are expression trees? Represent the following expression using a tree. (a-b) / ((c*d)+e).
DefinitionSource quality review required
What is extendible hashing? What is the need for it?
DefinitionWhen 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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
Advanced Examination Analysis
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.