MID QUESTIONS

Unit - I

  1. What is an algorithm and its characteristics.
  2. Define flowchart. Explain different symbols used in flowcharts with suitable examples.
  3. Define Datatype Explain Primitive Data Types in C with Suitable Examples
  4. Define operator Explain about different types of operators in C with example programs
  5. Describe structure of C with an example program.
  6. Write about basic input and output functions in C
  7. Write a short notes on identifiers, keyword, variables and constants.
  8. What is type casting and conversion? Explain different types of conversions with examples.
  9. Explain Unary operator and Bit wise operator with example program.
  10. Define Constant. Explain types of defining constants with example program.
  11. Write a C program to find square root of a given number.
  12. Write a C program to find average of 5 subjects.

ANSWERS U-1

Unit - II

  1. Explain simple if, if-else with syntax, flow chart and suitable example program.
  2. Write the syntax of switch case. Write a c program to make a calculator using switch case.
  3. Difference between while and do while loop with example.
  4. Write a C program to find sum of n natural numbers.
  5. Write a C program to find given number is prime or not
  6. Explain nested for loop with syntax and suitable example program.
  7. Explain for loop with syntax, flow chart with suitable example program.
  8. Write a C program to find given year is leap year or not.
  9. Write a short note on loop control statements.
  10. Write a C program to find factorial of a given number.

ANSWERS U-2