C Programming Language Sample Question Paper
C Programming Language Sample Question Paper
15. Explain how ‘switch’ statement is used in the programs instead of ‘if-else’ statements
with a suitable example program.
16. Write a C program to count the number of characters and print the vowels present in
entered text.
17. Write a C program to swap contents of two variables using call by reference.
18. Write a C program to search a particular roll no. in an array. If that roll no. exist inan
array print “number is present" else print “number is absent".
19. Write a C program to find factorial of given number using recursion function.
35. Write types of parameter passing methods in function and give one example of each.
36. Write a program to convert the given string "Hello" to "olleH" using recursion
37. Write a program to read, display the information about employees using structure.
38. Differentiate between * (arr+i) and (arr+i).
39. Write C Program for following string function.
a. strrev( )
b. strlen( )
A. Clarify the situation: when a function returns a value that does not match with the
return type of function?
B. State any four advantages of function.
C. State the difference between one dimensional and two dimensional arrays.
D. Give an example of enumerated data type with syntax.
E. Write types of parameter passing methods in function and give one example of each.
F. Write a program to convert the given string "Hello" to "olleH" using recursion
G. Write a program to read, display the information about employees using structure.
H. Differentiate between * (arr+i) and (arr+i).
I. Write C Program for following string function.
a. strrev( )
b. strlen( )