C Language Programming Question Bank
C Language Programming Question Bank
WARANANAGAR
QUESTION BANK
12. Write a program to find percentage, total marks and status(first division/second
division/third division/fail) of a student by taking five subjects with the help of nested
if-else.
13 . What are loop control structures? Explain ‘for loop’, ‘while loop’ and ‘do-while loop’ with
their syntax.
14. Explain ‘break’, ‘continue’ and ‘goto’ statement with example and their use.
1. Write a program to print series of number divisible by 3 from 1 to 100 using for loop.
2. Write a program to find factorial of a number using for loop.
3. Write a program to print Fibonacci series.
4. Write a program to find a number is prime number or not.
5. Write a program to print pyramid of star using nested for loop.
*
**
***
****
*****
6. Write a program to print table of a number given by user.
7. Write a program to find a number is Armstrong number or not.
8. Write a program to print series of number from 1 to 100 those are divisible by 5 and 7
both.
1. Define structure and explain how it differs from other data types..
2. How to initialize and access member of structure? Explain with example.
3. Write a program that shows concept of structure.
4. How to declare structure? Write uses of structure.
5. What do you mean by array of structure? Explain with example.
6. Write a program that shows the concept of array of structure.
7. What are macros? Explain with example.
8. Explain #if, #elseif, #undef and #pragma directive with example.
9. Define C processor and write features of C processors.
REFERENCE BOOKS
‘Let Us C’ by Yashavant Kanetkar, BPB Publications; 15th edition (13 July 2016), Pages: 572
‘ANSI C Programming Language’, Dennis M. Ritchie, Prentice Hall Software Series, 2nd Edition,
217