MID QUESTIONS
Unit - I
- What is an algorithm and its characteristics.
- Define flowchart. Explain different symbols used in flowcharts with suitable examples.
- Define Datatype Explain Primitive Data Types in C with Suitable Examples
- Define operator Explain about different types of operators in C with example programs
- Describe structure of C with an example program.
- Write about basic input and output functions in C
- Write a short notes on identifiers, keyword, variables and constants.
- What is type casting and conversion? Explain different types of conversions with examples.
- Explain Unary operator and Bit wise operator with example program.
- Define Constant. Explain types of defining constants with example program.
- Write a C program to find square root of a given number.
- Write a C program to find average of 5 subjects.
Unit - II
- Explain simple if, if-else with syntax, flow chart and suitable example program.
- Write the syntax of switch case. Write a c program to make a calculator using switch case.
- Difference between while and do while loop with example.
- Write a C program to find sum of n natural numbers.
- Write a C program to find given number is prime or not
- Explain nested for loop with syntax and suitable example program.
- Explain for loop with syntax, flow chart with suitable example program.
- Write a C program to find given year is leap year or not.
- Write a short note on loop control statements.
- Write a C program to find factorial of a given number.