Annamalai University 2008-6th Sem B.E Computer Science and Engineering ,__ ____(thirdester) _coec-305 c- language - Question Paper
C-LANGUAGES
TIME:3HRS
TOTAL NO OF PAGES:3
TOTAL NO OF UNITS:5
TOTAL MAXIMUM MARKS :60
ALL ques. CARRY EQUAL MARKS.
HAVE TO ATTEND full 1 ques. FROM every UNIT.
a few SINGLE ques. IS DIVIDED INTO SUB PART 'a' AND 'b'.
Register Number:
Name of the Candidate :
6 0 6 6 B.E. DEGREE EXAMINATION, 2008
( COMPUTER SCIENCE AND ENGINEERING )
( THIRD SEMESTER )
COEC - 305. C-LANGUAGE
May ] [ Time : 3 Hours
Maximum : 60 Marks
Answer any ONE full question from each unit. All question carry equal marks.
UNIT-I
1. (a) What are the*C character set ? (4)
(b) Explain relational and logical operators, with examples for illustration. (8)
2. (a) What are library functions ? Explain few of
them. (6)
(b) Explain the I/O statements in C\ (6)
3. (a) Explain the syntex for
(i) WHILE
(ii) DO WHILE statements.
How do you determine how many times the loop gets executed ? (8)
(b) What are storage classes ? Explain. (4)
4. (a) Distinguish between if-else and switch
statements. (6)
(b) Explain the format of a function. How do you pass parameters to function ? (6)
UNIT-III
5. (a) How do you declare an n-dimensional
array and initialized ? (6)
(b) How strings are handled in C ? What library functions are in use for string manipulation ? (6)
6. (a) How do you pass an array to a function ?
(b) Write a C program for adding the given two matrices. (6)
UNIT-IV
7. (a) What is a structure ? How does it differ
from a union ? (4)
(b) Write a C program to reed the marks of 100 students in 6 subjects from a file and declare them the result. The criteria for pass is, in all the subjects, they should score 50 marks. (8)
8. (a) What are self referential structure ? (4)
(b) Discuss open, close, file operations. Write a program for find the roots of 50 quadrate equations. (8)
UNIT V
9. Describe how Assembly language printer is used for string manipulations. (12)
10. Write briefly on how assembly language program is interfaced to C. Provide example for illustration. (12)
Attachment: |
Earning: Approval pending. |