C - Files and Preprocessors Questions and Answers
Practice ModeShowing 10 of 96 questions
Q21
The function (s) used for reading formatted input data from a file is (are)
Answer: Option B
Q22
The function used for random access of a file is
Answer: Option A
Q23
What is the value of origin used in fseek(fptr, position, origin);?
to represent end of file
Answer: Option C
Q24
What is the value of origin used in fseek(fptr, position, origin);?
to represent the beginnin of the file
Answer: Option A
Q25
If an errror occurs, the function fseek() returns
Answer: Option A
Q26
The value returned by fseek ( ) on successful action is
Answer: Option B
Q27
The function ftel (fptr) returns
Answer: Option C
Q28
The value returned by successful the current file position
Answer: Option C
Q29
The value returned by ftell ( ) if an erro occurs is
Answer: Option A
Q30
The function call fseek(fp, 0, 0) is same as
Answer: Option B