0% found this document useful (0 votes)
12 views2 pages

C Programme Module 5 Question

Programming

Uploaded by

kevinwhead
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

C Programme Module 5 Question

Programming

Uploaded by

kevinwhead
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Course Code: EST102

PROGRAMMING IN C

MOSULE -5

Part A

1. Differentiate between char name[] and char *name in C. July 2021(3marks)


2. Explain the use of fseek() function. July 2021(3marks)
3. Write any three file handling functions in C. July 2021(3marks)
4. Differentiate between address operator (&) and indirection (*) operator.

July 2021(3marks)

5. Distinguish between text mode and binary mode operation of a file. June 2022(3marks)

6. What do you mean by a pointer variable? How is it initialised? June 2022(3marks)

Part B

1. a) Explain any 5 file handling functions in C. (7marks)


b) Write a C program to reverse a string using pointers. July 2022(7marks)
OR
2. a) Differentiate between array of pointers and pointer to an array. (7marks)

b) Write a C program to count number of lines in a text file. July 2022(7marks)

3. a) Explain the different modes of operations performed on a file in C language. (7marks)


b) Write a program in C to copy the contents of one file into another. July 2022(7marks)
OR
4. a) Explain how pointers can be passed to functions in C. (7marks)

b) Explain any 5 file handling functions in C? July 2022(7marks)

5. Explain pointers and swap two numbers using pointers (7marks)


6. Explain the file handling functions and file reading modes (7marks)
7. Write a program to read from a file and write to another file (7marks)
8. Write a program to read from a file and count the number of lines (7marks)
9. Explain array access using pointers (7marks)
10. a) Write a C program to replace vowels in a text file with character ‘x’. (7marks)

b) Explain how pointers can be passed to functions in C. June 2022(7marks)

OR

11. a) Explain any 5 file handling functions in C? (7marks)

b) Write a C program to print the elements of an array in reverse order using pointers.

June 2022(7marks)

https://wa.me/+917994352111

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy