1.

In terms of stream and files ____________(a) Abstraction is called a stream and device is called a file(b) Abstraction is called a file and device is called a stream(c) Abstraction can be called both file and stream(d) Abstraction can’t be defined in terms of files and streamThis question was addressed to me by my school teacher while I was bunking the class.This key question is from Abstraction in division OOPs Concept & Features of Object Oriented Programming

Answer»

Right choice is (a) Abstraction is called a stream and device is called a file

Explanation: Abstraction is called stream to provide a LEVEL of complexity hiding, for how the files operations are actually DONE. Actual devices are called file because in ONE WAY or ANOTHER, those can be considered as single entity and there is nothing hidden.



Discussion

No Comment Found

Related InterviewSolutions