C Language - Files

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

 
7.

Any file mode code may be followed by a ____ indicating that the file may be both read from and written to.

A. * B. rw
C. & D. +




8.

Which of the following is a primary difference in the way binary and text files are handled?

A. Binary files do not have to be-opened to be processed' B. Text files are not readable by humans.
C. The way the end of the file is detected is different for both types. D. Binary files are limited by the number of bytes they take up.




9.

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

A. "ab" B. "r+b"
C. "wb" D. "br"




10.

If we printed a floating-point number using _____and printf, a conversion from internal binary to ASCII would have to take place

A. formatted access B. binary access
C. unformatted access D. B and C




11.

If we printed a floating-point number using _____and printf, a conversion The best I/O function to use for single character input from the keyboard is ____

A. getc B. putc
C. putchar D. getchar




12.

The best I/O function to use for single character output to a file is ____

A. getc B. putc
C. putchar D. getchar




« previous

1

2

3

4

5

6

7

next »

 
 
 



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