15 Robustness 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.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
B.a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
C.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
D.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
Answer + AI explanation with Pro
2. Which term means: "a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status"?
Mid
A.Nounset option
B.Errexit option
C.Pipefail option
D.Trap builtin
Answer + AI explanation with Pro
3. Which statement is correct?
Mid
A.Errexit option — a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
B.Errexit option — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
C.Errexit option — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
D.Errexit option — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
Answer + AI explanation with Pro
4. What is Nounset option?
Mid
A.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
B.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
C.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
D.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
Answer + AI explanation with Pro
5. Which term means: "a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string"?
Mid
A.Pipefail option
B.Word splitting
C.Errexit option
D.Nounset option
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Nounset option — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
B.Nounset option — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
C.Nounset option — the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
D.Nounset option — a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
Answer + AI explanation with Pro
7. What is Pipefail option?
Senior
A.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
B.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
C.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
D.a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
Answer + AI explanation with Pro
8. Which term means: "a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status"?
Senior
A.Pipefail option
B.Trap builtin
C.Errexit option
D.Nounset option
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
A.Pipefail option — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
B.Pipefail option — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
C.Pipefail option — the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
D.Pipefail option — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
Answer + AI explanation with Pro
10. What is Trap builtin?
Mid
A.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
B.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
C.a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
D.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
Answer + AI explanation with Pro
11. Which term means: "a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit"?
Mid
A.Pipefail option
B.Word splitting
C.Nounset option
D.Trap builtin
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Trap builtin — a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
B.Trap builtin — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
C.Trap builtin — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
D.Trap builtin — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
Answer + AI explanation with Pro
13. What is Word splitting?
Junior
A.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
B.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
C.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
D.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
Answer + AI explanation with Pro
14. Which term means: "the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes"?
Junior
A.Errexit option
B.Nounset option
C.Word splitting
D.Pipefail option
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.Word splitting — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
B.Word splitting — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
C.Word splitting — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
D.Word splitting — the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
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 Robustness question come with Pro.