Professional Documents
Culture Documents
CS3362 Set2
CS3362 Set2
Third Semester
(Regulations 2021)
1. a. Write a C program to implement a simple calculator using switch case statement. (50)
b. Write a C program using Recursive function to compute the factorial of a given number
(50)
2. a. Write a C program to find the addition of two matrices. (50)
b. Write a C program to check whether the given string is Palindrome or not. (50)
3. a. Write a C Program to find the roots of the quadratic equation. (50)
b. Write a C program to swap two number using pass by value and references. (50)
4. a. Write a C Program to find whether a given number is a prime number. (50)
b. Write a C program to find the Fibonacci series up to a range. (50)
5. a. Write a C program to sort an array of ‘N’ numbers using quick sort. (50)
b. Write a C program to check whether the given number is an Armstrong number or not. (50)
6. a. Write a C program which copies one file to another. (50)
b. Write a C program to check the biggest of three numbers. (50)
7. a. Write a C program to sort an array of ‘N’ numbers using merge sort. (50)
Page 1 of 3
10. a. Write and execute a C Program to implement payroll application with the given data by
using structure.
HRA=15% of basic Pay
DA=20% of Basic Pay
PF =10% of Basic Pay
LIC=8% of Basic Pay ,
Deduction= PF + LIC
Gross Salary = Basic Pay + HRA + DA
Net Salary = Gross Salary – Deduction (50)
b. Develop a C program to sort an array of ‘N’ numbers using insertion sort. (50)
Page 2 of 3
18. a. Write a C Program to convert the infix expression a+b*c-d into postfix expression. (50)
Page 3 of 3