CHAPTER WISE QUESTIONS
CHAPTER WISE QUESTIONS
b) Define Algorithm.
h) Write algorithm and draw flow-chart to print even numbers from 1 to 100.
i) *Write a program to accept marks of four subjects as input from user. Calculate and display total and percentage
marks of student.
l)*Describe the following terms : (i) Keyword (ii) Identifier (iii) Variable (iv) Constant
a) Define Array.
a)* Develop a program using structure to print data of three students having data members name, class, percentage.
c) Differentiate between character array and integer array with respect to size and initialization.
d) *With suitable example, explain how two dimensional arrays can be created.
f) Write a program to accept 10 numbers in array and arrange them in ascending order.
g)*Write a program to declare structure student having rollno, name & marks. Accept & display data for 3 students.
c)Write a program to declare structure employee having data member name, age, street and city. Accept data for two
employees and display it.
d) Define Array. Write a program to accept ten numbers in array. Sort array element and display.
c) *List the categories of functions and explain any one with example.
i) Write a program to reverse the number 1234 (i.e. 4321) using function.
a) Develop a program to find diameter, circumference and area of circle using function.
b)*If the value of a number (N) is entered through keyboard. Write a program using recursion to calculate and display
factorial of number (N).
c) *Write a program to perform addition, subtraction, multiplication and division of two integer number using
function.
d) *Explain meaning of following statement with reference to pointers : int *a, b; b = 20; *a = b; A = &b;
b) *Develop a program to swap two numbers using pointer and add swapped numbers also print their addition.
d)*Write a program to accept two numbers from user and perform addition, subtraction, multiplication and division
operations using pointer.
f) *Write a program to compute the sum of all elements stored in an array using pointers.