0% found this document useful (0 votes)
59 views2 pages

Questions List 1

Uploaded by

anunayx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views2 pages

Questions List 1

Uploaded by

anunayx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Write a simple program to read int, float, char and string using
scanf() and display using printf()
2. Sum and Difference of 2 numbers
3. Bitwise Operators
4. Conversion of Fahrenheit to Celsius and vice versa
5. Distance travelled by an object.
6. Calculate Simple interest and compound interest.
7. Evaluate the following expressions a, b integers, c float, d double, i, j
integers.
i. a/b*c-b+a*d/3
ii. j = (i++) + (++i)
8. Square root of a given number
9. Find the area of circle, square, rectangle, and triangle.
10. Find the maximum of three numbers using conditional
operator.
11. Take marks of 5 subjects in integers, find the total in integer
and average in float.
12. Conditional statements in C
13. Generate electricity bill
14. Simulate a calculator using switch case
15. Find the given year is a leap year or not, year should be YYYY
16. “for” Loop in C
17. Sum of the digits of a 5-digit number
18. Armstrong Number or not
19. Palindrome or not
20. Construct a Pascal triangle.
21. One dimensional Arrays in C
22. Array reversal
23. Search an element in array
24. Find min and max elements in array
25. Replace an element into array at a given index
26. Identify duplicate elements from array
27. Sorting of elements in an array using Bubble sort
28. Addition of two matrices
29. Trace of a Matrix
30. Lower Triangular in a Matrix
31. Printing Tokens
32. Count number of alphabets (lowercase, uppercase,
consonants, vowels) and digits
33. Digit Frequency
34. Find string length, concatenate two strings, reverse a string
using built-in and without built-in string functions.
35. Functions in C
36. Factorial using recursion
37. Find the digit sum using recursion
38. Calculate the Nth term using recursive function
39. Swap two numbers using functions and pointers - call by value
and reference
40. Find the sum of a 1D array using malloc().
41. Write a C program to copy the contents of one text file to
another file.
42. Write a C program to Find no. of lines, words and characters in
a file.
43. Write text into and read text from a binary file using fread()
and fwrite().
44. Merge two files into the third file using command-line
arguments.

You might also like