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

C Programming Practice Questions

This document provides practice questions for Chapters 7 and 8 of a book on Programming in C. The questions cover displaying the structure of a database file, reading a file after the first 10 characters and printing it, and writing a name 10 characters from the end of a file while using exit() if unable to write or open the file.

Uploaded by

Swapnil Gaikwad
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

C Programming Practice Questions

This document provides practice questions for Chapters 7 and 8 of a book on Programming in C. The questions cover displaying the structure of a database file, reading a file after the first 10 characters and printing it, and writing a name 10 characters from the end of a file while using exit() if unable to write or open the file.

Uploaded by

Swapnil Gaikwad
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPS, PDF, TXT or read online on Scribd

Programming in C

Practice Questions

In this session, you will do the practice questions of Chapter 7 and Chapter 8.

Ver. 1.0

Slide 1 of 3

Programming in C
Chapter 7

1. You are a part of a database software development team. The software you are developing is to be used to create and query on database files. You are assigned the task of writing a C program, which displays the structure of any database file, as given in the following file.

Ver. 1.0

Slide 2 of 3

Programming in C
Chapter 8

1. Read a file after the first 10 characters and print it on screen. (Hint: Create a text file by the name of [Link] and write 2-3 lines of content in it.) 2. Write your name 10 character after the end of the file. Also, use the exit() function to terminate the execution, if you are unable to write or open the file.

Ver. 1.0

Slide 3 of 3

You might also like