Question Bank 2024 PPS
Question Bank 2024 PPS
Question Bank 2024 PPS
Write a program to compute the addition, subtraction, product, quotient and remainder of two given numbers using Switch
statement.
2. Write a program to convert temperature from degree centigrade to Fahrenheit. °F = °C*9/5+32
3. Write a program to swap the values of two variables without using a temporary variable.
4. Write a program to print the odd and even numbers within a given range.
5. Write a program to find the factorial of a given number.`
6. Write a program to print the sum of digit of a given number.
7. Write program to print the Fibonacci series up to a given number.
1. Write a program to print the prime numbers within a given range.
9. Write a C Program to Find Largest Number Among Three Numbers
10. Write a C Program to Find LCM of Two Numbers
11. Write a C program to Calculate the Area of a Circle/Triangle using Macro i.e. #define.
12. Write a C Program to Check Leap Year
13. Write a C program to check if string is palindrome or not.
14. Write a C Program to count the Number of Even/Odd from a given range.
15. Write a program to print the following pattern
(Take number of lines as input from the user).
**** or *
*** **
** ***
* ****
16. Predict the output of the following C program:
#include <stdio.h>
int main()
{
int i = 0;
for(i = 0; i < 10; i++) {
if(i == 2) {
continue;
}
printf("i = %d\n", i);
}
return 0;
}
int main() {
int i = 0;