GATE / CS ARCHIVE

GATE CSE 1997 / QUESTION 3.7

Input redirection

Operating Systems · I/O & Disk Scheduling · Full GATE CSE 1997 paper

GATE 1997, Q3.7 1 mark · MCQ
Report issue

I/O & Disk Scheduling

Question 3.7, GATE 1997: Does I/O redirection rename files, allow an existing file to supply program input, necessarily connect two programs by a pipe, or none?
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Redirection changes where a program’s input/output stream is connected. For example, connecting standard input to an existing file lets a program read that file using its usual input operations, which is B. The file need not be renamed. A pipe connects streams between processes and is related but distinct; redirection to a regular file does not require a second program. Therefore C is not a necessary description.

Original paper, page 3