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

Est102 Progrm. in C (B), 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)
56 views2 pages

Est102 Progrm. in C (B), 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

018ST102052002 B

F
RegNo.:

APJ ABDI]L KALAM TECHNOLOGICAL U


Second Semester B.Tech Degree Examination July 2021 (201

Course Code: EST102


Course Name: PROGRAMMING IN C
(AN Session)
Max. Marks: 100 Duration: 3 Hours
PART A
Answer oll Questions. Each question curries 3 Marhs Marks
I Differentiate between system software and application software. (3)
2 Write an algorithm to find the largest of three numbers (3)
a
J What is the difference between assignment and equality operators? (3)
4 What is a static variable? When should it be used? (3)
5 Write a C program to find length of a string without using string handling (3)
functions.
6 What is an array? Illustrate using an example, how a single dimensional array (3)

is initialised.
7 Differentiate between structure and union using an example. (3)
8
9
TRACE KTU
Illustrate the purpose of return statement using an example.
Differentiate between char name[] and char *name in C.
(3)
(3)

l0 Explain the use of fseek0 function. (3)

PART B
Answer ony one Qaestionfrom each module. Each question carries 14 Marks
1l a) Draw a flowchart to find the factorial of a number. (6)

b) With the help of a neat diagram explain the functional units of a computer. (8)
'oR
t2 a) List five important registers in CPU. Also state the purpose of each register. (6)
b) Write algorithm and draw flowchart to perform swapping of two numbers. (8)
13 a) Explain arithmetic, logical and bitwise operators with examples. (7)
b) Write a C Program to check if a given number is a strong number or not. A (7)
strong number is a number in which the sum of the factorial of the digits is
equal to the number itself.
Eg:- I 45:1 !+4 !+5 !:l +24+120=1 45
OR
l4 a) Write C program to convert the given decimal number into binary number. (7)

Page 1 of 2
0185T102052002 B

b) What do you mean by Formatted Input? Explain in detail the prototype of (7)
'scanfQ' function in C including its argument list and return type.
l5 a) Explain any 4 shing handling funetions in C programming. (7)
b) Write a Cprogram to perform linear on an array of numbers (7)
TIn
16 a) Write a C program to find second largest element in an array. (7)
,.. b) Write a C program to check whether a string is palindrome or not without using (7)
\',) string handling functions.
;
t7 a) What are different storage classes in C? Give examples for each. (7)

t(. b) Write a C program to: (7)


(i) Create a structure with fields: Name, Address, Date of birth.
.i.iI
(ii) Read the above details for five students from user and display the details
OR
l8 a) What is recursion? Write a C program to display Fibonacci series using (7)
recursive function.
b) Write a C program to sort N numbers using functions. (7)
19 a) Explain any 5 file handling functions in C. (7)
b) Write
TRACE KTU
a C program to reverse a string using pointers.
OR
(7)

20 a) Differentiate between array of pointers and pointer toan array. (7)


b) Write a C program to count number of lines in a text file. (7)
*** !F

Page 2 of 2

You might also like