 Niranjan Kumar Das
Software Developer, Lecturer, Academic+professional Trainer, Owner blogger of ProPathshala.

# C Programming Important Questions for the final exams.

1. What is looping? Write a program to calculate and display the multiplication table using nested loop. [2+8]
2. Describe the “strca”, “strcpy”, “strle” and “strrev” string functions with examples. 
3. Write a program to arrange the elements of an array in ascending order. 
4. What is “fscanf” function? Write a program to display name, age and address reading from a file named “record.dat”. [2+8]
5. What is function? Write a program to generate factorial of given number using recursive function. [2+8]
6. Describe any five ‘file handling function’ with examples. 
7. What is looping? Describe ‘for loop’, ‘while loop’ and ‘do-while loop’ with appropriate examples. 
8. Write a program which asks 100 numbers and sort them in ascending order. 
9. Write a program to find greatest number among four numbers. 
10. Write a program which reads name of 100 students and sort them in alphabetical order. 
11. Describe ‘Sequence’, Selection’ and ‘Loop’ with flowchart. Write a program to check if a number is odd or even. [6+4]
12. What is pointer? Describe the benefits of pointer with examples. [4+6]
13. What is an array? Write a program which finds multiplication table of two matrices (3×3). 2+8]
14. Write a program which reads name, roll-number and age from a file named “student. dat” and display them. 
1. Write a program which reads the sum, difference and product of 2 numbers using switch case statement. 
2. Describe the types of loop with flowchart and examples. 
3. Write a program which asks the user to input ‘n’ terms of number and find out the greatest and smallest number among those numbers. 
4. Differentiate between array and structure with suitable examples. [5+5]
5. What is nested loop? Write a program to display the multiplication table of nth terms of given numbers. [2+8]
6. Describe any five “string handling functions” with examples. 
1. Write a program which reads salary of 25 employees and count the number of employees who are getting salary between 30,000 to 40,000. 
2. Describe fprintf and fscanf file handling functions. Write a program which writes “welcome to Nepal” in a file. 
3. What is control statement? Describe ‘Sequence’, ‘Selection’ and ‘Loop’ with flowchart and examples. [2+8]
4. Write a program which reads name of 20 employees and sort them in alphabetical order. 
5. Differentiate between structure and union with suitable examples. [5+5]
6. What is recursion? Write a program to calculate factorial value of given number using recursive function. [2+8]
7. Write a program which reads name, department and age from a file named

“employee.dat” and display them. 

1. What is string? Explain any four string handling functions with example. [2+8]
2. What is control statement? Write a program which selects and prints largest among 3 numbers using “if-else” statement with flow charts. [2+8]
3. Write a program to store mark obtained by ‘n’ students and count the number of students who obtained mark greater than 70. Also count the number of students who are failed (mark<35). List any five string functions. 
4. Write a program to input a string and count the number of consonants containing in the string. [2+8]
5. Write a program to show data writing and reading operating to / from a data file. [2+8]
6. Explain the importance of pointer in C programming. Illustrate pointer operations with examples. Show the relationship between array and pointers with example. [3+3+4]
7. Write an algorithm for a program that input cost price (CP) and selling price (SP) and determines whether there is gain or loss. Convert this algorithm into program code. 
8. Write a program to display the name of day on the basis of entered number 1 to 7. For example, 1 for Sunday. 
9. Explain data types used in C programming with examples. 
10. An organization has 5 stores and it deals in items. The stock position of these items is shown below:
1. What is variables in programming? List out the different data types in C program. [2+3]
2. Describe the different mode of file handling concept in C. 
3. Explain the array and structure with examples. [2.5+2.5]
4. Differentiate between while and do-while loop. [3.5+3.5]
5. Describe the limitation of using getchar and putchar functions for reading strings. 
6. In event driven programming what is event handler? Explain the term
‘recession’. 
7. What is Program Logic? What are different tools to explain the logic and design of a program? What is infinite loop? What are symbols used to draw a flow chart? [1+3+1+2]
8. What is operator? Describe the types of operators with appropriate examples. [1+4]
Share