ECE-C&DS
ECE-C&DS
NO:
PART-B
11.a) i)What is the difference between data types and variables? Explain the types? (6)
ii) Explain the various operators used in C. (7)
OR
b)i) Explain about the various decision making and branching and looping statements in C programming
language and write the program of find the largest among 3 numbers. (6)
ii) Explain in detail about arrays and how to initialize the array and write the program of find the sum of
10 non negative number using arrays. (7)
b)i)Define circular queue. Explain various operations performed on a circular queue with example. (6)
ii) Define dequeue and applications of dequeue. Explain various operations performed on dequeue with
example. (7)
14)a)i) Explain the various tree traversal methods on a binary tree with example. (6)
ii) Explain binary search tree and outline the algorithm to search the binary tree. (7)
OR
b) Discuss the common collision resolution strategies used in closed hashing system. (13)
15). a)i)Explain about linear search and binary search with example.(13)
OR
b) i) Explain in detail about insertion sort with an example. (6)
ii ) Discuss about quick sort with example. (7)
PARTC
16) a)i)The keys of 12,18,13,2,3,23,5 and 15 are inserted in an empty hash table of length 10 using linear
probing with hash function h(k)=k mod (10). What is the resultant hash table. (8)
ii)When do you perform rehashing? Illustrate with an example. (7)
OR
b) Explain two-dimensional array and find the addition of two matrix using c program. (15)