Subject: PROGRAMMING IN C Subject Code: 221BS104
Year & Semester: I [Link] I Semester
MODULE I
Question Bank
1(a) Analyse Generations of programming languages
(b) Write a program to accept customer number, customer name, previous,month
reading, current month reading and total number of units and net payment at the
cost of Rs.10.05 per unit.
2. (a) What is a structure of c program
(b) Write a program to accept a number as input and check if it is divisible by
both 3&5. If it is divisible print YES else print NO.
3. (a) Define data types in c
(b) Write a program to accept employee number, employee name, basic salary
and calculate TA, DA, HRA, PF, IT, Net salary, gross salary by using If-else
ladder.
4.(a) Define Iterative statements – for, while, do-while, nested-if
(b) Write a program to accept a number N as input from the user and print the
following patterns Sample N = 5.
A
BC
DEF
GHIJ
KLMNO
5.(a) write a multidimensional array ?
(b) Write a program to accept two matrices A, B and determine AB and BA and
display the message AB and BA are not equal.
6.(a) Define types of arrays?
(b) write a c program to accept a number as input and check if it is an Armstrong
number
7.(a) what is strings?
(b).count the number of 0’s and 1’s in an array having 0’s and 1’s in random order