Unit
Unit
11. What are the different type’s operators? Explain each with suitable example
What is associativity? Explain operator precedence.
Unit-2
1. Differentiate between while-do and do while.
2. Write about nested for loop statement with examples
3. What is the need of format specifier? Write a sample program to illustrate any five format
specifiers.
4. What is type casting? Name the inbuilt typecasting functions available in C language.
5. What is the difference between type casting and type conversion?
6. Write a C program to calculate mn value using while and do while loop.
7. Explain counter-controlled and condition-controlled loops with examples.
8. What are selection statements? What is the necessity of selection statements? Example
9. Differentiate the conditional operator with if else statement. Explain with the help of an
example.
10. Write C program to check whether the given number is even or odd without using %
(modulus) operator.
11. What are the different types of control statements available ’C’. Explain them
with an example?
12. Write briefly about the conditional and unconditional statements.
13. Write a program to award the grad to the students using switch statements
14. Write a program that asks user an arithmetic operator('+', '-', '*' or '/') and two operands
and perform the corresponding calculation on the operands. Use a switch statement.
15. Write a C program to check whether a number entered by user is even or odd. Use a if
else statement.
16. Explain the working of ternary Operator with example.
17. Conditional and Unconditional statements
18. Logical operators
19. Explain if-else statement and nested if-else statement with syntaxes and suitable
examples
20. Write a C program to accept an integer number and print the digits using words (for
example 356 is printed as Three Five Six)
21. If break was not given in the switch statement, what happens? Explain with example.
22. Explain about the switch statement? What is the importance of the break and continue?
Give examples.
23. Write a program to sum the digits in a given number.
24. Draw the flow chart for the Armstrong number and write the program.
25. What is meant by pretest and posttest loop?
26. Give the differences between break and exit() statements in C language.
27. What is the importance of break in switch statement? If break is not given what happens?
Explain with example
28. Explain about switch statement. What is the importance of break and continue in switch
statement? Give examples.
29. Write a program to find greatest common divisor (GCD) of two integers m and n and use
it to find the LCM (least common multiple)
30. Explain different looping statements with syntax and examples.
31. Write a C program to generate and print the numbers between 100 and 200 which are
divisible by 3 but not divisible by 4.
32. Write a C program to find factorial of given number using for loop.
33. Explain nested. if else and else if ladder with syntax and give examples respectively?
Unit-3
1. How to access array elements? Explain.
2. What is a format string? How do you write format strings for data entry and display?
3. . What is the advantage of using arrays? Give syntax for declaration, accessing and
printing one - dimensional array?
4. Write a program to compare two strings without using existing functions. String handling
functions.
5. Write the syntax for declaring two - dimensional array write a program to access and
print the array elements.
6. Write a program to find max and min elements from the array.
7. Write a program to count number of characters in a string
8. What is a null character? Write its uses in strings.
9. How does a structure differ from an array?
10. Explain different types of string handling functions with example.
11. Write a C program to check whether the given string is palindrome or not?
12. Write C program to read an array of names and to sort them in alphabetical order
13. Explain Union with example
14. Explain the structures
15. What is the difference structures and unions
16. What is morse codes
17. Explain the User Defined data types
18. Explain how to access the elements of a union with an example
19. Write a program using structures to display the following information for each customer
name, account number, street, city, old balance, current payment, new balance, account
status.
20. How to copy one structure to another structure of a same data type, give an example?
21. What are the two types of operators used for accessing members of a structure? Explain
with examples.
Unit-4
Unit-5
1. What is the purpose of library function feof() ? How feof() be utilized within a program
that updates an unformatted data file. Explain