PROGRAMMING-FOR-PROBLEM-SOLVINGCSE-IT-CSM-CSD-CSO
PROGRAMMING-FOR-PROBLEM-SOLVINGCSE-IT-CSM-CSD-CSO
ACE
Engineering College
(An Autonomous Institution)
ACE-R22
Question Paper Code: 22CS104ES
a) Define algorithm. 1
g) What is recursion? 1
2.a List out the operators available in C language and describe each operator. 5
(OR)
3.a Demonstrate various forms of if statement with syntax and example. 5
3.b Write a C program to calculate the sum of digits in the given number. 5
4.a Illustrate the procedure for declaring, initialising and accessing of pointers. 5
4.b Show the differences in the usage of a structure and union with an example. 5
(OR)
5.a Create a C program to display the string in reverse order without using string 5
handling functions.
5.b Why are arrays required? Categorize and discuss various types of arrays in C. 5
6 Classify and explain the usage of the preprocessor directives with examples. 10
(OR)
7.a Design a C program to copy the contents of one file to another file. 5
7.b List out and describe various modes of file operations with syntax and examples. 5
10 Sort the following elements by using selection sort: 35, 19, 66 ,14, 8,10 ,57, 100. 10
(OR)
11 Construct a C program for Linear search technique, to search for given key element 10
stored in an array.