C Language - Files

You Are Here :: Home > C Language > Files - General Questions

 
1.

C keeps track of the byte position in the disk file by maintaining a(n)

A. buffer B. address
C. file position indicator D. temporary slot




2.

When C is informed that a particular program is to use a particular file, it sets up a structure of type ___.

A. struct B. FILE
C. fopen D. B and C




3.

Which of the following is not a valid C file mode?

A. "a" B. "o"
C. "r" D. "w"




4.

This file mode tells C to open an existing file with the position indicator at the beginning of the file. In the absence of further code characters, this file can only be read from.

A. "a" B. "o"
C. "r" D. "w"




5.

This file mode opens an existing file, or if none exists, creates a new one. The file position indicator is placid at the end (which would also be the beginning if a new file was created).

A. "a" B. "o"
C. "r" D. "w"




6.

This file mode creates a new empty file with the file position indicator at the beginning. If a file with the same identifier already exists, the new empty one will replace it.

A. "a" B. "o"
C. "r" D. "w"




1

2

3

4

5

6

7

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on