KALASALINGAM UNIVERSITY PART-A (10 x 2=20 MARKS)

advertisement
KALASALINGAM UNIVERSITY
B.TeCh DEGREE JULY 2012
SUBJECT: C programming language
TIME: 180 minutes
MAXIMUM MARKS: 100 marks
TERM: End semester
PART-A (10 x 2=20 MARKS)
1. Write down the structure of C program?
2. Differentiate between printf and scanf statement.
3. Define user define function.
4. List the type of storage Class.
5. Define multi dimensional array with its syntax.
6. What is meant by dynamic memory allocation?
7. Define enumerated data type.
8. What is the role of strlen() function and give the syntax?
9. List out the file Commands.
10.Define the term kernel.
PART-B (5 x 16=80 MARKS)
11a. (i)Write a C program to perform quadratic equation.
11a. (ii)Explain in detail about decision making statement
(or)
11b. (i)Write a C program to swap two numbers.
11b. (ii)Write a C program to Check whether the given number is odd or even.
(8)
(8)
(8)
(8)
12a. (i)Explain in detail about the Categories of function
(or)
12b. (i)Explain the various types of storage Classes with example.
(16)
13a. (i)Write a C program to perform matrix multiplication.
(or)
13b.(i)Write a C program to perform matrix addition and subtraction.
(16)
14a. (i)Write a program in C to Create student database using structure.
(or)
(16)
(16)
(16)
14b. (i)Explain in detail about memory allocation function.
(16)
15a. (i)Write a C program to find the average of n numbers using files.
15a. (ii)Write a C program to merge the two file Contents into third file.
(or)
15b. (i)Write short note on
a) File Commands
b) Directory Commands
(8)
(8)
***********ALL THE BEST FOR YOUR STUDIES***********
(8)
(8)
Download