Robustness interview questions

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
  1. A.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
  2. B.a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
  3. C.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  4. D.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Mid
  1. 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
  2. B.Errexit option — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  3. C.Errexit option — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
  4. D.Errexit option — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
Reveal the answer + AI explanation — free account

4. What is Nounset option?

Mid
  1. A.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
  2. B.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  3. C.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
  4. D.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
Reveal the answer + AI explanation — free account

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
  1. A.Pipefail option
  2. B.Word splitting
  3. C.Errexit option
  4. D.Nounset option
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Nounset option — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
  2. B.Nounset option — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
  3. 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
  4. 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
Reveal the answer + AI explanation — free account

7. What is Pipefail option?

Senior
  1. A.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
  2. B.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  3. C.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
  4. D.a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
Reveal the answer + AI explanation — free account

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
  1. A.Pipefail option
  2. B.Trap builtin
  3. C.Errexit option
  4. D.Nounset option
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Senior
  1. A.Pipefail option — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  2. B.Pipefail option — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
  3. 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
  4. D.Pipefail option — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
Reveal the answer + AI explanation — free account

10. What is Trap builtin?

Mid
  1. A.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
  2. B.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  3. C.a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
  4. D.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. 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
  2. B.Trap builtin — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
  3. C.Trap builtin — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  4. D.Trap builtin — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
Reveal the answer + AI explanation — free account

13. What is Word splitting?

Junior
  1. A.a shell mode, enabled with set dash-u, that treats referencing an undefined variable as an immediate error instead of an empty string
  2. B.a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
  3. C.the shell's breaking of an unquoted expansion into multiple fields on whitespace, the classic reason to wrap variables in double quotes
  4. D.a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
Reveal the answer + AI explanation — free account

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
  1. A.Errexit option
  2. B.Nounset option
  3. C.Word splitting
  4. D.Pipefail option
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Word splitting — a mechanism that registers commands to run automatically when the shell receives a given signal or reaches exit
  2. B.Word splitting — a setting that makes a pipeline report failure if any stage fails, rather than only reflecting the last stage's status
  3. C.Word splitting — a shell mode, enabled with set dash-e, that aborts the script when any untested command returns a nonzero status
  4. 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
Reveal the answer + AI explanation — free account

Free to start

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.

Practice Robustness free