You are on page 1of 1

C PROGRAMMING IST MID EXAMS QUESTION BANK

UNIT 1 1. a) b) c) a) b) 3. 4. Define variable, constant. What is an identifier. Mention the rules to form an identifier. What are the various data types in c? Give a brief notes on memory sizes and range for each data type. Define algorithm. What are the characteristics of an algorithm? Define flow chart. Draw the flow chart to print prime numbers upto the given range.

2.

Explain in detail the types of operators available in c with their precedence and associativity a) b) Explain type casting and its types with examples. Write a c program to calculate the roots of the quadratic equation (Note: Implement the concept of type casting in this program)

5.

a) b)

Explain the program development steps Explain the basic structure of c program with an example

UNIT 2 6. 7. 8. Explain the multi path selection statements with syntax, flow chart and example program Explain the two way selection statements with syntax, flow chart and example program Write a c program to find out the students grade based on percentage using switch 90 100 A+ , 80 89A , 70 79B , 60 69C , 50 59D , 40 49E , < 40FAIL 9. 10. Write a c program to perform all arithmetic operations using else if ladder a) b) UNIT 3 11. 12. Define a loop. Explain various loop control statements with syntax, flow chart and example. a) b) Write a c program to find the factorial of a given number. Write a c program to generate 0 1 2 3 4 13. a) b) 14. a) b) 15. UNIT 4 16. a) Define array. Give the syntax for declaration, accessing and printing elements, inputting the elements into array. b) 17. 18. Write a c program to calculate the sum of all elements present in an array. Explain the multiple initializations and updating in for loop with an example Write a c program to generate Fibonacci series. Write a c program to print the mathematical table of a given number upto the range Write a c program to check whether the given number is palindrome or not. 1 2 3 4 2 3 4 3 4 4 Explain the bitwise complement, left shift operators with examples Explain rotation and masking

Explain any 5 string handling functions with syntax.

Write a c program to find the maximum and minimum elements in an array. Write a c program to sort the elements in an array in ascending order.

You might also like