1.

What is a FileDescriptor?(a) A handle for machine specific structure of an open file(b) A handle for program specific structure of an open file(c) A handle for compiler specific structure of an open file(d) A handle for representing device files structureThe question was asked in homework.I want to ask this question from IO Class topic in portion Inbuilt Classes of Object Oriented Programming

Answer»

The correct ANSWER is (a) A HANDLE for machine specific structure of an open FILE

Easiest explanation - The machine specific structure of an open file have to be handled in some special ways. FileDescriptor class can handle those FILES. The FileDescriptor can also handle open socket, another SOURCE, sink of bytes.



Discussion

No Comment Found

Related InterviewSolutions