Thiagarajar College of Engineering, Madurai 625 015. Department of Electronics and Communication Engineering
Thiagarajar College of Engineering, Madurai 625 015. Department of Electronics and Communication Engineering
Assessment Pattern
Remember Understand Apply Analyze Evaluate Create Total
- 20 60 20 - - 100
main()
{
static int b[ ] = {10,20,30,40,50};
int i, *k;
k=&b[4]-3;
for (i = 0; i <3; i++)
{
printf ("%d",*k);
k++ ;
}
}
A8. Write a text s[15]=”read only memory”, write the algorithm to find to find its
abbreviation.
Page 1 of 3
A9. Mention the importance of dynamic memory allocation.
A10. What is the difference between opening a file in binary mode and text mode.
B3. Develop an algorithm to find the factorial of a given number and implement it
using recursive function.
OR
B4. Write a function to check whether a given number is prime or not.
B5. Develop an algorithm to remove all duplicate entries in a given array and
implement it using pointers.
OR
B6. Develop an algorithm to merge two arrays in order and implement it using
pointers.
B7. Consider a casual FIR filter of order M with impulse response h(n), n =
0,1,2,....M and input signal x(n) , n=0,1,2,....L-1. Develop an algorithm to
calculate the convolution of the input x(n) with order M filter h using direct form
given by
min(n ,M )
y(n)= ∑ h(m) x(n−m )
m=max ( 0,n−L+1 )
OR
B8. Consider a N×N matrix. Write functions to find the maximum element, minimum
element and average of elements present in the matrix. Also write a function to
arrange the elements present in an array in ascending order row wise.
B9. Develop an algorithm to search for a keyword in a given line of text and count
its occurrence.
OR
B10. Develop an algorithm to arrange the given strings in alphabetical order.
Page 2 of 3
Part C (Analyze) 1 x 20=20
C1. Hurricanes are tropical storms with very strong winds and heavy rains. The
Saffir–Simpson scale defines categories of hurricane intensity based on the
wind speed. If the storm’s winds are between 38 and 74 miles per hour, it called
a tropical storm; if the winds exceed 74 miles per hour, the storm is a tropical
cyclone, or hurricane.
Page 3 of 3