Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1.

2.
3.
4.
5.
6.

Discuss in detail about the History of Computation.


Write short notes on Computational thinking.
Explain in detail about the software development life cycle.
Describe the keywords and constants in C with example.
Explain the various kinds of operators in C with example.
Write an algorithm, pseudo code and draw the flowchart to check whether the given
number is positive or not.
7. Explain structure of C program and how to compile and execute a C Program. List the
rules that are applicable for all C Programs.
8. If a five-digit number is input through the keyboard, write a program to
calculate the sum of its digits.

9. The length and breadth of a rectangle and radius of a circle are entered through keyboard.
Write a program to calculate the area and perimeter of the rectangle, and the area and
circumference of the circle.
10. Any character is entered through the keyboard; write a program to determine whether the
character entered is a capital letter, a small case letter, a digit or a special symbol.
11. Consider Ramas basic salary is input through the keyboard. His dearness allowance is
45% of basic salary, and house rent allowance is 25% of basic salary. Write algorithm,
flowchart and C program to calculate gross salary of Rama.
12. The principal amount, number of years and rate of interest are input through the
keyboard. Write a C Program to calculate the simple interest.
13. Write C program to swap the two numbers without using a temporary variable.
14. Write a C program to implement multiplication table of 5 using for loop.
15. Recall the structure of the while loop and dowhile loop and with an example
program.
16. Write a program to check whether a triangle is valid or not, when the three angles of the
triangle are entered through the keyboard. A triangle is valid if the sum of all the three
angles is equal to 180 degrees.
17. Write short notes on goto statement with an example.
18. Describe the syntax of else if ladder statement and nested if statement with an example.
19. Discuss in detail about switch statement with its syntax. Write a program using switch
statement to perform swapping in case 1 and factorial in case 2 and sum of first 10 natural
numbers in case 3 . If the above three choice is not present print the statement WRONG
CHOICE.
20. Write a C program to find the greatest of the three numbers entered through the keyboard
using
i) if-else statement
ii) Conditional operators.
(iii) Logical operators.
21. If the marks obtained by a student in five different subjects are input through the
keyboard, Write a program to find out the aggregate marks and percentage marks
obtained by the student. Assign grades based on percentage marks as shown below and
print the details.
Percentage
Grade
>=90
E

>=80

>=70

>=60

>=50

<50

22. Differentiate the statements break and continue and illustrate with an example.
23. Write a program to check whether the given number is prime or not.
24. Write a C program to print the following pattern.
1
2 3
4 5 6
7 8 9 10
25. Write a C program to print the Fibonacci series.
26. Write a menu driven C program with the options:
(i)Determine whether the given number is odd or even.
(ii)Determine whether the given year is leap or not.
(iii)Determine factorial of a given number.
(iv )Exit
27. Write a C program to find whether the given number is palindrome or not.
28. Convert the following equations into corresponding C statements. (6 marks)

Answer:
Z=((8.8*(a+b)*2/c-0.5+2*a/(q+r))/(a+b)*(1/m))
X=((-b+(b*b)+2*4*a*c)/(2*a))
29. Associativity of operators.
30. Ten numbers are entered from the keyboard into an array. The number to be
searched is entered through the keyboard by the user. Write a program to find if the
number to be searched is present in the array and if it is present, display the
number of times it appears in the array.
31. Write a program to put even and odd elements of an array in two separate arrays.
32. Array sorting ascending and descending order
33. Array reverse
34. Largest and Smallest element in the array

35. Write code for reading and printing strings in the form of a character array,
illustrating strcpy(), strncat(), strcmp(), strupr() and strlwr() operations.
36. Write a C program to perform 3x3 matrix addition, subtraction and multiplication.
37. Source Code to Find the Frequency of Characters in a String
38. Source Code to find number of Vowels, Consonants, Digits and White Spaces in a
string
39. What are functions? How are they useful? What are the different kinds of user defined
functions and what is the need of user defined functions?
40. With suitable example illustrate call by value and call by reference techniques of
passing parameters.
41. What are the different Categories of functions? Explain with example.
42. What are structures in C? How are they different from unions? Give an example for
structure. (or)Define structures and UNION in C.
43. Construct an array of structure called student. The data numbers are name, rollno, class
grade and percentage mark. Read n records and print the details of the student, given a
particular rollno as the key.
44. Explain structures within structures.
45. Create a structure of employees having the following information:
Employee id
Employee name
Date of joining
Salary
Write a C program to input information of 20 employees and display the details of the
specified employee given the employee id.
46. Write a program to create an array of structures named STUDENT with fields name,
cell no, address and percentage mark. Read the data pertaining to n students and list the
names of the students whose percentage marks is greater than or equal to 85.

You might also like