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

EST102-B - June 2022

The document is an exam for the course Programming in C. It contains 20 multiple choice questions testing concepts like functions of CPU components, loops, arrays, strings, file handling, structures, pointers, and recursion. Students are required to answer questions covering different modules related to C programming.

Uploaded by

kmctitm
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)
65 views2 pages

EST102-B - June 2022

The document is an exam for the course Programming in C. It contains 20 multiple choice questions testing concepts like functions of CPU components, loops, arrays, strings, file handling, structures, pointers, and recursion. Students are required to answer questions covering different modules related to C programming.

Uploaded by

kmctitm
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 0100EST102052003 Pages: 2

Reg No.:_______________ Name:__________________________


APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Second Semester B.Tech Degree Examination June 2022 (2019 scheme)

Course Code: EST102


Course Name: PROGRAMMING IN C (Common to all programs)
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all Questions. Each question carries 3 Marks Marks

1 What are the functions of ALU and CU? (3)


2 Draw a flowchart to find the sum of first N numbers. (3)
3 Differentiate between while and do-while loops using an example. (3)
4 Why is the use of goto statement discouraged in C programs? (3)
5 Write a C program to compare any two strings using string handling functions. (3)
6 Write a C program to find the largest element in an array. (3)
7 Name the different types of parameter passing. Illustrate each of them with an (3)
example.
8 What are the advantages of modular programming? (3)
9 Distinguish between text mode and binary mode operation of a file. (3)
10 What do you mean by a pointer variable? How is it initialised? (3)
PART B
Answer any one Question from each module. Each question carries 14 Marks
11 a) Explain linear search with an example. Draw a flowchart and write pseudo code (14)
to perform linear search on an array of numbers
OR
12 a) List five important registers in CPU. Also state the purpose of each register. (6)
b) Write an algorithm to find sum of digits of a number. (8)
13 a) Explain different data types supported by C language with their memory (7)
requirements.
b) Write down a C program to check if a number is present in a given list of (7)
numbers. If present give location of the number otherwise insert the number in
the list at the end.
OR

Page 1 of 2

Downloaded from Ktunotes.in


0100EST102052003

14 a) Explain formatted and Unformatted I/O functions of C language with syntax and (7)
example.
b) Write a C program to read a character from the user and check whether it is a (7)
vowel or consonant.
15 a) Write a C program to find the transpose of a matrix. (7)
b) Explain any 4 string handling functions in C programming. (7)
OR
16 a) Write a C program to reverse a string without using string handling functions. (7)
b) Write a C program to sort an array of numbers using bubble sort. (7)
17 a) Write a C program to : (7)
(i) Create a structure containing the fields: Name, Price, Quantity, Total Amount.
(ii) Use separate functions to read and print the data.
b) What are different storage classes in C? Give examples for each. (7)
OR
18 a) What are the main differences between structures and unions? Which is preferred (7)
in what situation? Give examples.
b) What is recursion? Write a C program to display Fibonacci series using recursive (7)
function.
19 a) Write a C program to replace vowels in a text file with character ‘x’. (7)
b) Explain how pointers can be passed to functions in C. (7)
OR
20 a) Explain any 5 file handling functions in C? (7)
b) Write a C program to print the elements of an array in reverse order using (7)
pointers.
****

Page 2 of 2

Downloaded from Ktunotes.in

You might also like