0% found this document useful (0 votes)
22 views2 pages

Est102 Prog in C (A), July 2021

Uploaded by

ammuttymalutty98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

Est102 Prog in C (A), July 2021

Uploaded by

ammuttymalutty98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

F 01EST102052001 A

Reg No.: Name:

APJ ABDUL KALAM TECHNOLOGICAL UNIVERS


Second Semester B.Tech Degree Examination July 2021 (2019

Course Code: EST102


Course Name: PROGRAMMING IN C (Common to all programs)
(FN Session)
Max. Marks:' l00 Duration: 3 Hours
PART A
Answer all Questions. Each questiort carries 3 Marks Marks
t Differentiate between system software and application software. (3)

2 Differentiate between complier and interpreter. (3)


-:f
J What is the impoftance of precedence and associativity? Write the table for (3)

operator precedence.
+ Differentiate betu'een 'break' and 'continue'statements. (3)

Explain any 3 string handling functions using examples. (3)

6 Write a C progrant to find the occurrence of each element in an arrar'. (3)


4
I Define forrnal paralneters and actual parameters. lllustrate u'ith an exanrple. (3)

8
TRACE KTU
With examples show horv:
(i) an arral is passed as argument of a function.
(3)

(ii) individual elements of an array is passed as ar-sument of a function.

9 Write any three file handling functions in C. (3)

l0 Differentiate between address operator(&) and indirection(*) operator. (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)

b) Write an algorithm to find sum of digits of a number. (7)

OR
12 Explain bubble sort with an example. Draw a flow,chart and write pseudo code (14)

to perform bubble sort on an array of numbers


13 a) Explain different data types supported by C language with their rnetnory (7)

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)

{i) Create a structure containing containing the fields: Name-. Price,

Quantity, Total Amount.


. (ii) Use separate functions to read and print the data

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

You might also like