C Language - Files

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

 
13.

The best I/O function to use for inputting a string from a file is

A. gets B. getc
C. fgets D. getsf




14.

The best I/O function to use for outputting a string to the screen is

A. putc B. fputc
C. sput D. puts




15.

The _____function moves the pointer (file position indicator) to the beginning of the file.

A. first B. goback
C. return D. rewind




16.

The ____ function returns a value which is the current file position indicator, as an offset from the beginning of the file.

A. fflush B. fseek
C. rewind D. none of the above




17.

This function allows a programmer to rename a file within a c program.

A. unlink B. remove
C. rename D. newname




18.

This function allows a programmer to delete a file in a UNIX environment.

A. unlink B. remove
C. rename D. newname




« previous

1

2

3

4

5

6

7

next »

 
 
 



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