C Programming Important Questions
Unit –III
Q.1 Differentiate between
a) Automatic storage class Vs Register Storage Class
b) Static Storage Class Vs External Storage Class
Q.2 What is function? List different types of function? Explain any one
with suitable example?
Q.3 WAP in c which counts number of Positive, Negative and Zero
elements in an given array.
Q.4 what is recursion? WAP in c to calculate factorial of a given number
using Recursion.
Q.5 Write a program to find the largest element from a one dimensional array. 5
Q.6 Explain Call by Value and Call by Reference with examples.
Q.7 Define Array. Write a program to search an element in the given array
of size n using Sequential
Q.8 Write a program to concatenate two strings without using strcat( )
function
Q.9 Write a program to sort the elements of one dimensional Array using
Bubble's sort method.
Q.10Define array. Write a program in 'C' to delete an element from one
dimensional array at a given
position. 5
Q.11Write any five string manipulation functions provided by 'C' language
? Explain with suitable example.
Q.12 Write a program in 'C' to illustrate function with :
No argument and no return value.
Q.13 What is storage class ? Explain various storage classes with suitable
examples.
UNIT –IV
Q.1 Give the difference between structure and union.
Q.2 What is file ? Describe various modes to open a file with suitable examples.
Q.3 What is a Pointer ? Explain pointer arithmetic with example.
Q.4 What is a Data file ? Explain different file opening modes in C language. 5
Q.5 Write a program in C to declare a structure to input and print name, age and
marks of students.
Q.6 Explain Random Access mode in files handling with example.
Q.7 How will you open and close a file in C ?
Q.8 Explain different file modes in C. 5
Q.9 Explain pointer arithmetic in C.
Q.10 WAP in C to copy content of one file to another file.
Q.10 WAP in C to find sum of N elements of an array using Pointer
Q.11 Explain the following :
1] fopen() 2] fclose 3] fseek 4] getw 5] putw
Q.12Differentiate between sequential and random access.
Q.13