Important Questions of PPS
Important Questions of PPS
Important Questions of PPS
return 0;
}
21. Any integer number is entered through the keyboard. Write a program to obtain the reversed
number and determine whether the number is palindrome or not.
22. Write a program to check whether a given number is Armstrong or not.
23. Write a program in 'C' to find that the given number is prime or not.
24. Write a program in 'C' to print all prime between and lower and upper limit .
25. Write a program to find the factorial of any integer entered by the user.
26. Write a Program in C to print the table of any integer number input by the user . and print the
output like .
12*1 = 12
12*2 = 24
.
.
.
12*10 = 120
27. Write a program in C to print the following pattern.
A
BC
DEF
GHIJ
28. Write a program in C to print the following pattern.
*
** *
*****
29. Write a program in C to print the following pattern.
5
45
345
2345
12345
30. Write a program in C to print the following pattern.
5
54
543
5432
54321
31. Explain the importance of structure in C programming. Write a program in C using structure to
enter and print the record of 10 books available in your library. Following fields may be included
in the record: - book_title, book_price and number_of_pages.
32. Write a program in C to create a database of fifty students to store personal details such as roll
no, name and marks. Print all the details of student whose roll no entered by user
33. Write a program in C to reverse a string without using string function.
34. What is string? Also explain the following string functions
i. Strcpy()
ii. Strrev()
iii. Strlen()
iv. Strcmp()
35. Define structure with syntax .Also write a program that compares two given dates. To store date
use structure say date that contains three members namely date, month and year. If the dates
are equal then display message as "Equal" otherwise "Unequal".
36. Write a program to count the number of characters, spaces and words new lines in a string .
37. Differentiate between structure and union in 'C'. Write a 'C' program to store the employee
details using structure
38. Create a suitable structure in C language for keeping the records of employees of an
organization about their name, code, designation, salary, department, city of posting. Also write
a c program to enter the records of 100 employees and display the names of those who earn
more than 20,000.
39. Write a C program that accepts a string and checks whether a given string is a
palindrome or not.
40. Write a C program to find the length of a string without using the built-in function.
41. Write a program to print the pattern
1
12
123
1234
123
12
1