PPS IMP QUE
PPS IMP QUE
4 Marks Questions:
1. Illustrate an Algorithm to check whether the given year is a leap year or not.
2. Illustrate the basic structure of a C Program and highlight usual sections of the
main function.
3. Construct a C program to find the largest number amongst three integers
entered.
4. Explain the nested if-else statement with a suitable example.
5. Summarize the methods for initialization of One-Dimensional array.
6. Summarize the method for Declaration, initialization, and Printing on screen of
a String.
7. List the categories of User Defined Functions and Discuss any one of these.
8. Show the use of malloc(), calloc(), free(), and realloc() in the context
of dynamic memory allocation.
7 Marks Questions:
1. Define Flow chart, List the rules for designing a Flow chart, and Rephrase the
merits and demerits of a flow chart.
2. Construct a C program which receives the number of days as input and
converts them into Year, Months, and Days.
3. Construct a C program to swap the values of two integers with the use of only
two variables.
4. Construct a C program to check if an entered integer is a prime number or not.
5.
6. Construct a C program to multiply a 3x3 matrix.
7. Define a structure which contains details of a Cricketer: Name, Team name,
Total runs scored, Batting average.
8. Construct a C program which uses a user-defined function that receives an
integer and returns the square and cube of it and prints them in the main
function.
9. List and discuss file handling functions used in C.
10.
11. Write a C program to find the sum of digits for a given number using the
concept of User Defined Function (UDF).
(For example: For number 3278, sum of digits is 3 + 2 + 7 + 8 = 20)