Professional Documents
Culture Documents
Objective Type
2) A file is stored in .
a) RAM b) ROM c) Hard disk d) Cache
14) Which mode opens only an existing file for both reading and writing ?
a) "w" b) "w+" c) "r+" d) "a+"
24) Which mode opens only an existing file for both reading and writing?
a) "W" b) "W+" c) "r+" d) "a+"
25) Which of the following function is used to read character from a file?
a) getc ( ) b) putc ( ) c) fputs ( ) d) fgets ( )
26) Which of the following function is used to write string to a file?
a) getc ( ) b) putc ( ) c) fputs ( ) d) fgets ( )
27) An array subscript should be.
a) int b) float c) duble d) real
28) Which of the following character is used to mark the end of the string?
a) \0 b) /0 c) \a d) \n
2. Write "T" for a true statement and "F" for a false statement (1 x 6 = 6)
29) A picture cannot be stored in a test file .
☐ True ☐ False
34) When an existing file is opened in "w" mode , its contents are over-written .
☐ True ☐ False
3. Fill in the blanks. (1 x 5 = 5)
35) A ___________ can store text only .
36) EOF stands for ____________ .