Programming in C - CS8251 2017 Regulation - Semester Question Paper 2021 Nov Dec
Programming in C - CS8251 2017 Regulation - Semester Question Paper 2021 Nov Dec
in
Reg. No. :
Second Semester
CS 8251 – PROGRAMMING IN C
(Regulations 2017)
10. Distinguish between text mode and binary mode operation of a file.
https://play.google.com/store/apps/details?id=com.poriyaan.poriyaan
www.Poriyaan.in
PART B — (5 × 16 = 80 marks)
11. (a) (i) Explain enumeration constants with an example program. (8)
(ii) Write a ‘C’ program to compute student grades using switch case
statement. The input to be program are marks of 5 subjects,
compute the total and average and find respective grade of the
students. (8)
Grades
>90 ‘S’
80-90 A
70-79 B
60-69 C
50-59 D
40-49 E
<40 F
Or
12. (a) What is string? Explain about declaration and initialization of string in
‘C’. How strings are displayed with different formats? Explain with
examples.
Or
13. (a) Explain different string handling functions available in C with examples.
Or
14. (a) Explain nested structure and self-referential structure with an example.
Or
(b) Define a structure. Describe how to declare and initialize structure and
its members with an example.
2 40386
https://play.google.com/store/apps/details?id=com.poriyaan.poriyaan
www.Poriyaan.in
15. (a) Explain about the fopen (), fclose(), feof(), fprintf(), fscanf(), fseek() and
rewind() functions.
Or
(b) Create two text files and write a C program to add to contents of one file
at the end of another.
—————————
3 40386
https://play.google.com/store/apps/details?id=com.poriyaan.poriyaan
Programming in C
Physics
Basic for Engineering
Electrical and Data Structure
Problem Solving and Science Engineering
Electronics
Python Programming Object Oriented
Programming in C
Programming
Elective-Management
Professional Elective II
Professional Elective IV