I/O & Redirection interview questions

18 I/O & Redirection questions from the Bash bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Standard streams?

Junior
  1. A.the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
  2. B.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
  3. C.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
  4. D.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input

Answer + AI explanation with Pro

2. Which term means: "the three default channels numbered zero, one, and two for input, normal output, and error messages respectively"?

Junior
  1. A.Here-document
  2. B.Process substitution
  3. C.Pipe
  4. D.Standard streams

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Standard streams — sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
  2. B.Standard streams — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  3. C.Standard streams — the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
  4. D.Standard streams — a feature that exposes a command's output or input as a temporary filename so tools expecting a path can read a stream

Answer + AI explanation with Pro

4. What is Output redirection?

Junior
  1. A.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  2. B.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
  3. C.sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
  4. D.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached

Answer + AI explanation with Pro

5. Which term means: "sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead"?

Junior
  1. A.Here-document
  2. B.Output redirection
  3. C.Pipe
  4. D.Stderr-to-stdout merge

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Output redirection — a feature that exposes a command's output or input as a temporary filename so tools expecting a path can read a stream
  2. B.Output redirection — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
  3. C.Output redirection — an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
  4. D.Output redirection — sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead

Answer + AI explanation with Pro

7. What is Stderr-to-stdout merge?

Mid
  1. A.the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
  2. B.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
  3. C.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  4. D.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively

Answer + AI explanation with Pro

8. Which term means: "the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one"?

Mid
  1. A.Output redirection
  2. B.Process substitution
  3. C.Standard streams
  4. D.Stderr-to-stdout merge

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Stderr-to-stdout merge — a feature that exposes a command's output or input as a temporary filename so tools expecting a path can read a stream
  2. B.Stderr-to-stdout merge — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
  3. C.Stderr-to-stdout merge — the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
  4. D.Stderr-to-stdout merge — an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached

Answer + AI explanation with Pro

10. What is Pipe?

Junior
  1. A.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
  2. B.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  3. C.sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
  4. D.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively

Answer + AI explanation with Pro

11. Which term means: "the vertical-bar connector that feeds one command's standard output directly into the next command's standard input"?

Junior
  1. A.Pipe
  2. B.Stderr-to-stdout merge
  3. C.Process substitution
  4. D.Standard streams

Answer + AI explanation with Pro

12. Which statement is correct?

Junior
  1. A.Pipe — sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
  2. B.Pipe — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  3. C.Pipe — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
  4. D.Pipe — an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached

Answer + AI explanation with Pro

13. What is Here-document?

Mid
  1. A.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  2. B.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
  3. C.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
  4. D.sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead

Answer + AI explanation with Pro

14. Which term means: "an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached"?

Mid
  1. A.Pipe
  2. B.Here-document
  3. C.Standard streams
  4. D.Process substitution

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Here-document — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
  2. B.Here-document — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  3. C.Here-document — sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
  4. D.Here-document — an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached

Answer + AI explanation with Pro

16. What is Process substitution?

Senior
  1. A.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
  2. B.sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
  3. C.the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
  4. D.a feature that exposes a command's output or input as a temporary filename so tools expecting a path can read a stream

Answer + AI explanation with Pro

17. Which term means: "a feature that exposes a command's output or input as a temporary filename so tools expecting a path can read a stream"?

Senior
  1. A.Standard streams
  2. B.Output redirection
  3. C.Process substitution
  4. D.Pipe

Answer + AI explanation with Pro

18. Which statement is correct?

Senior
  1. A.Process substitution — a feature that exposes a command's output or input as a temporary filename so tools expecting a path can read a stream
  2. B.Process substitution — the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
  3. C.Process substitution — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
  4. D.Process substitution — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every I/O & Redirection question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers