22ES12
22ES12
R 0
PART-A 10 X 1M = 10M
PART-B 5 X 10M = 50 M
11.A i. Compare while and do-while loops with appropriate examples. II 1 1,2,3,
12
ii. Explain about Logical operators, increment and decrement
operators in C
OR
11.B i. Read the marks of eight subjects and calculate the percentage. II 1 1,2,3,
The program should output following grades based on percentage 12
obtained in eight subjects.
Percentage 80 - 100 70 - 79 60 - 69 50 -59 Less than 50
Grade O A B C F
13.A i. Describe the usage of following string manipulation functions III 3 1,2,3,
with examples. 12
a) strcat( ) b) strcpy( ) c) strcmp( ) d) strlen( ) e) strrev( )
ii. Write a C Program to check whether the given string is
palindrome or not?
OR
13.B i. Describe the usage of following functions related to dynamic III 3 1,2,3,
memory allocation concept with examples. 12
a) malloc( ) b) calloc( ) c) realloc( ) d) free( )
ii. Write a C Program to count vowels in a given string.