Header files and math functions
State any four math functions with its use.
Give the significance of <math.h> and <stdio.h> header files.
Write syntax and use of pow ()function of <math.h> header file.
Explain following functions: getchar( ) putchar( ) getch( ) putch( )
State the use of printf( ) & scanf( ) with suitable example.
Explain any four library functions under conio.h header file.
Define Algorithm
State the use of following symbols used for flowchart drawing:
Basic Maths
Develop a simple ‘C’ program for addition and multiplication of two integer numbers.
Develop a program to accept an integer number and print whether it is palindrome or
not.
Write a program to Print values of variables and their addresses.
Operators (Logical, Increment/Decrement)
Explain increment and decrement operator.
Implement a program to demonstrate logical AND operator.
Decision making (If, If else, Nested if else, Conditional operator)
State any four decision making statement.
Give syntax of if-else ladder.
Write an algorithm to determine whether a given number is divisible by 5 or not
Explain conditional operator with example.
Write a program to accept the value of year as input from the keyboard & print whether
it is a leap year or not.
Write a program using switch statement to check whether entered character is VOWEL
or CONSONANT
For loop
Design a program to print a message 10 times.
While loop
State use of while loop with syntax.
Draw a flowchart for checking whether given number is prime or not.
Write algorithm and draw flow-chart to print even numbers from 1 to 100.
Do while loop
Draw a flowchart of Do-while loop and write a program to add numbers until user
enters zero.
Explain do-while loop with example.
Arrays
Define One dimensional array
Design a programme in C to read the n numbers of values in an array and display it in
reverse order.
Define Array
Write a program to accept marks of four subjects as input from user. Calculate and
display total and percentage marks of student.
Define Multi-dimensional array
Write a program for addition of two 3 x 3 matrices.
Functions
If the value of a number (N) is entered through keyboard. Write a program using
recursion to calculate and display factorial of number (N).
Develop a program to find factorial of a number using recursion.
Write a program to sweep the values of variables a = 10, b = 5 using function.
Develop a program to find diameter, circumference and area of circle using function.
Explain User defined function with example.
Write a program to swap two numbers using call be value.
-Pointers
Give any four advantages of pointer.
Explain how to pass pointer to function with example.
Implement a program to demonstrate concept of pointers to function.
Develop a program to swap two numbers using pointer and add swaped numbers also
print their addition.
Define pointer. Write syntax for pointer declaration.
Write a program to accept two numbers from user and perform addition, subtraction,
multiplication and division operations using pointer.
Structure
Develop a program using structure to print data of three students having data members
name, class, percentage.
Give a method to create, declare and initialize structure also develop a program to
demonstrate nested structure.
Write a program to declare structure employee having data member name, age, street
and city. Accept data for two employees and display it.