1.

File class is ____________________________(a) An abstract of file representation only(b) An abstract of path names only(c) An abstract which can be used to represent path names or file(d) An abstract which can represent a file in any formatThis question was addressed to me during an interview.Enquiry is from IO Class topic in portion Inbuilt Classes of Object Oriented Programming

Answer»

Correct answer is (C) An abstract which can be used to represent path names or file

Easy EXPLANATION - The File class is made to operate with the files. The file can be of any type. All the input and OUTPUT operations that have to be performed on a file can be DONE using File class object.



Discussion

No Comment Found

Related InterviewSolutions