Download as pps, pdf, or txt
Download as pps, pdf, or txt
You are on page 1of 3

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 Example.txt 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