retagged by
1,829 views
1 votes
1 votes

Match the following with respect to I/O classes in object oriented programming $:$

$\begin{array}{clcl}  & \textbf{List – I}&& \textbf{List – II} \\ \text{a.} & \text{fopen()} & \text{i.} & \text{returns end of file} \\ \text{b.} & \text{fclose()} & \text{ii.} & \text{return for any problem report} \\ \text{c.} & \text{ferror()} & \text{iii.} & \text{return 0} \\ \text{d.} & \text{feof()} & \text{iv.} & \text{returns a file pointer}  \\ \end{array} $

$\textbf{Codes :}$

  1. $\text{a-iv, b-i, c-ii, d-iii}$
  2. $\text{a-iii, b-i, c-iv, d-ii}$
  3. $\text{a-ii, b-iii, c-iv, d-i}$
  4. $\text{a-iv, b-iii, c-i, d-ii}$
retagged by

1 Answer

Best answer
3 votes
3 votes

Answer : A

List – I                          List – II

a. fopen()                   iv. returns a file pointer on success and NULL otherwise

b. fclose()                  i. returns 0 on success and EOF otherwise

c. ferror()                  ii. checks the error indicator for the given file stream returning non-zero if set and 0 otherwise

d. feof()                    iii. checks the end of file indicator for the given file stream returning non-zero if set and 0 otherwise 

Reference :  fopen()  fclose()  ferror()  feof() 

selected by
Answer:

Related questions

0 votes
0 votes
2 answers
1
makhdoom ghaya asked Jul 11, 2016
1,367 views
The syntax of capturing events method for document object isCaptureEvents() CaptureEvents(Orgs eventType)CaptureEvents(eventType)CaptureEvents(eventVal)
0 votes
0 votes
1 answer
2
makhdoom ghaya asked Jul 11, 2016
1,884 views
The pure object oriented programming language with extensive metadata available and modifiable at run time isSmall talkC++ JavaEiffel
0 votes
0 votes
0 answers
3