0% found this document useful (0 votes)
3 views3 pages

CS3251 C Programming revision Set A & Set B

This document outlines a revision test for B.E/B.Tech students in the CSE/IT branch at Jaya Engineering College, focusing on programming in C. It includes questions divided into three parts: Part A consists of short answer questions, Part B involves programming tasks, and Part C requires detailed explanations and coding examples. The test is scheduled for May 28, 2024, and is designed to assess students' understanding of file handling and command line arguments in C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

CS3251 C Programming revision Set A & Set B

This document outlines a revision test for B.E/B.Tech students in the CSE/IT branch at Jaya Engineering College, focusing on programming in C. It includes questions divided into three parts: Part A consists of short answer questions, Part B involves programming tasks, and Part C requires detailed explanations and coding examples. The test is scheduled for May 28, 2024, and is designed to assess students' understanding of file handling and command line arguments in C programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SET - A

JAYA ENGINEERING COLLEGE


[Approved by AICTE,AFFILIATED TO ANNA UNIVERSITY, CHENNAI & NAAC Accredited Institution]
Thiruninravur– 602 024, Thiruvallur Dt., Tamil Nadu.
Reg.N
o

REVISION TEST (B.E. / B.Tech)


(2021-Regulation)
Degree: B.E / B.Tech
Semester: II
Branch: CSE / IT
Sub. Code and Name: CS3251-Programming in C
Time: 1 ½ Hours Date: 28 /05/2024(AN) Maximum Marks: 50
Answer ALL the questions
PART – A (10 x 2 = 20 Marks)
Q.No. Questions Standard of
question
1. Why are files needed? LO
2. Give an example for fseek(). LO
3. What will be the impact if ‘fclose()’ function is avoided in a file handling Cprogram/ LO
4. LO
Name any two functions used in Random access files and specify their use in C
programming
5. List the various modes of accessing a file through C. LO
PART – B (1 x 8 = 8 Marks)
Q.No. Questions Standard of
question
6. a. .Discuss any one file access methods with example program. IO

(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

Subject Incharge HOD

SET -B
Reg.N
o

REVISION TEST (B.E. / B.Tech)


(2021-Regulation)
Degree: B.E / B.Tech
Semester: II
Branch: CSE / IT
Sub. Code and Name: CS3251-Programming in C
Time: 1 ½ Hours Date: 28 /05/2024(AN) Maximum Marks: 50
Answer ALL the questions
PART – A (10 x 2 = 20 Marks)
Q.No. Questions Standard of
question
1. Define file. LO
2. What is the difference between fseek() and ftell(). LO
3. What is rewind? LO
4. What is the difference between Text and Binary file? LO
5. What are command line argument. LO
PART – B (1 x 8 = 8 Marks)

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

You might also like