Bcom C Qbank
Bcom C Qbank
1. What are Constants? Explain with example #define statement in ‘C. List rules apply
to it(2+8)
2. What is Variable? Explain with examples declaring, initializing and assigning value to
variable.(2+8)
3. Explain the structure of C program with the help of an example program and block
diagram.
4. Write a note on i) Keywords
ii) Identifiers
ii) Variables
iv) Constants (2.5 each)
5. Explain Primary Data types in C with examples.
6. Write a note on History of C and importance of C.(5+5)
6. Write a C program to read student roll no and marks in subjects. Find total, average
and display all detail in a neat format.
7. Write a C program to read Employee information like empid and basic salary.
Calculate gross salary with DA 10% of basic salary and HRA 12% of basic salary.
10. Write a C program to find largest of three numbers using nested if else statement.
11. Write a C program to find factorial of a number.
7. Write a C program to count number of vowels, digits and special characters present in
String.