CS3251 C Programming revision Set A & Set B
CS3251 C Programming revision Set A & Set B
(OR)
b. Describe command line argument with example C program. IO
PART – C (2 x 16 = 32 Marks)
1
JAYA ENGINEERING COLLEGE
[Approved by AICTE,AFFILIATED TO ANNA UNIVERSITY, CHENNAI & NAAC Accredited Institution]
Thiruninravur– 602 024, Thiruvallur Dt., Tamil Nadu.
Q.No. Questions Standard of
question
7. a. What is file/ What are facilities available in language C to handle files? Explain. HO
(OR)
b. Explain the various file accessing policies available in language C with HO
appropriate programs.
8 a What is the purpose of the variables argc and argv of command line arguments in HO
C language? Explain with a sample program.
(OR)
b How does random accessing of files are done in C language? Explain in detail. HO
SET -B
Reg.N
o
2
Q.No. Questions Standard of
question
6. a. Write a C program to get name and marks of ‘n’ number of students from user and IO
store them in a file.
(OR)
b. Discuss about argc and argv with an example program. IO
PART – C (2 x 16 = 32 Marks)
Q.No. Questions Standard of
question
7. a. Write a C program to read name and marks of ‘n’ number of students from user HO
and store them in a file. If the file previously exists then append the information
into the existing file.
(OR)
b. Explain in detail about the file accessing methods available in C with an example HO
program.
8 a Explain in detail about accessing the text and binary file in C program. HO
(OR)
b .Write a C program to write all the members of an array of structures to write all HO
the members of an array of structures to file using fwrite().Read the array from
the file and display on the screen..
Subject Incharge HOD