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.
A.the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
B.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
C.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
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
A.Here-document
B.Process substitution
C.Pipe
D.Standard streams
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Standard streams — sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
B.Standard streams — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
C.Standard streams — the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
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
A.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
B.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
C.sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
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
A.Here-document
B.Output redirection
C.Pipe
D.Stderr-to-stdout merge
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
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
B.Output redirection — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
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
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
A.the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
B.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
C.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
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
A.Output redirection
B.Process substitution
C.Standard streams
D.Stderr-to-stdout merge
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
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
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
C.Stderr-to-stdout merge — the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
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
A.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
B.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
C.sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
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
A.Pipe
B.Stderr-to-stdout merge
C.Process substitution
D.Standard streams
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.Pipe — sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
B.Pipe — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
C.Pipe — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
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
A.the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
B.the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
C.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
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
A.Pipe
B.Here-document
C.Standard streams
D.Process substitution
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Here-document — the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
B.Here-document — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
C.Here-document — sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
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
A.an inline redirection that feeds a multi-line literal block into a command's input until a chosen delimiter word is reached
B.sending a command's normal output into a file, where a single arrow truncates and a double arrow appends instead
C.the notation that ties the error channel to wherever the output channel currently points, classically written as two-greater-ampersand-one
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
A.Standard streams
B.Output redirection
C.Process substitution
D.Pipe
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
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
B.Process substitution — the three default channels numbered zero, one, and two for input, normal output, and error messages respectively
C.Process substitution — the vertical-bar connector that feeds one command's standard output directly into the next command's standard input
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.