h
h
KARTHIKEYAN, PROFESSOR/CSE(AI&ML)
PART-B
1. Explain in detail about different phases in C program structure.
2. Write a C program which includes all kinds of data types.
3. What are the different kinds of operators available in C? Explain in detail with appropriate
syntax..
4. To implement all bitwise operators while the value of m=15 and n=20.
5. Evaluate the following expression by manual using precedence and associativity in step by
step manner 6*2/(2+1*2/3+6)+8*(8/6).
6. Give the detailed notes on evaluation of expression with suitable example.
PART-B
1. Write a C program to calculate the Largest of two numbers by using IF statement.
2. Explain in detail about different kinds of IF statements.
3. Give the brief notes on Decision making and branching.
4. Write a C program with suitable if statement to read 3 subject Marks. Calculate and display
the grade of a student based on the following percentages.
➢ < 40 - Fail
➢ Between 51 to 60 – B grade
➢ Between 61 to 75 – A grade
9. Write a C program to find sum of n natural numbers ( 1+2+3. . . .+n) using while loop.
PART-B
1) Write a C program to find Multiplications of two Matrices using Array.
2) Write a C program to find the largest and smallest number among a list of integers in an
Array.
3) Write a C Program to read an array of n elements and find the sum of all even integers
and odd integers.
4) Write a C program to find Addition of two Matrices using Array.
5) Demonstrate the Two dimensional array concept with suitable syntax of initialization and
declaration.
6) Predict the importance of String with suitable syntax.
7) Write a C program to demonstrate any four string handling functions.
VARDHAMAN COLLEGE ENGINEERING
Dr. R. KARTHIKEYAN, PROFESSOR/CSE(AI&ML)
PART-B
2. Demonstrate the recursive function concept with suitable program.
4. Write a C program to find the factorial of a given number using non recursive function.
5. Write a C program to find the factorial of a given number using recursive function.
9. How to find out the size of structure? Explain with suitable example.
10. Write a C program to create a Student structure containing name, rollNo and grade as
11. Enlighten the concept of Union initialization and declaration with suitable example.
1. What is pointer?
2. What is pointer variable.
3. Give the syntax of declaration and initialization of pointer.
4. Define the term pointer to pointer.
5. List out the operators in pointer arithmetic.
6. Define array pointer.
7. Define File.
8. Describes the importance of file.
9. Define Text file.
10. Define Binary file.
11. List out the different file operations.
12. Describe any three file modes.
13. What is sequential file accessing?
14. Define Random accessing of files.
15. Compute fprintf().
16.Compute fscanf().
PART-B
1. Explain pointer to pointer initialization and declaration concept with suitable
example.
2. Analyse the pointer to array concept with suitable syntax.
3. Demonstrate pointer arithmetic concept with suitable example.
4. Examine the concept of pointer to structure with appropriate example.
5. Illustrate the file operations with suitable sample program.
6. Demo the Read and Write operation of file with example.
7. Investigate Random accessing file methods with appropriate example.