Est102 Prog in C (A), July 2021
Est102 Prog in C (A), July 2021
operator precedence.
+ Differentiate betu'een 'break' and 'continue'statements. (3)
8
TRACE KTU
With examples show horv:
(i) an arral is passed as argument of a function.
(3)
PART B
Answer an! one Question from each nrcdule. Each question carries 14 Marks
I I a) Explain different lypes of memory used in a computer. (7)
OR
12 Explain bubble sort with an example. Draw a flow,chart and write pseudo code (14)
requirements.
b) Write a C program to check if a number is present in a given list.of numbers. If (7)
present, give location of the number otheruise inserl the number in the list at
the end.
Page 1 of 2
0185T102052001 A
OR
:.., 14 a) Write a C program to find the Sum of first and last digit of a number. (7)
language. What is the difference befween type casting and type conversion?
15 a) Write a C program to perform linear search on an array of numbers. {7)
b) Write a C prograrn to reverse a string without using string handling functions. (7)
-oR
16'y) Write a C program to find the transpose of a matrix. (7)
b) Write a C program to print number of vowels and consonants in a string. {7t
{ a) What is the purpose of function declaration and function definition and function (7)
call? With exarnples illustrate their syntax.
.if
b) Write a C program to : (7)
OR
l8 a) What are different storage classes in C? Give examples for each. (7)
b)
TRACE KTU
Write a C program to find sum and average of an array of integers using
defined funcrions.
..
user (7)
I9 a) language.
Explain the different modes of operations performed on a file in C (7)
b) Write a program in C to copy the contents ofone file into another. (7)
't,oR
' 20 a) Explain how pointers can be passed to functions in C. (7)
b) Explain any 5 filehandling functions in C? (7)
Page2 of2