15 real Robustness questions from the Bash bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is Errexit option?
Mid
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
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
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"?
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
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
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"?
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
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.