Skip to content
CogniSkill

FREE COURSE KNOWLEDGE CHECK

Bash Scripting for Everyday Automation — Knowledge Check

Review the worked course material with three explained questions.

3 questionsLearning check · review every explanationRelated course: Bash Scripting for Everyday Automation

Three original learning questions with explanations. This is a short course check, not a certification mock exam or readiness prediction. Public answers support self-review; sign in to save a scored attempt.

Course questions with explanations

Review each question and reveal its explanation without an account. Sign in to save a scored attempt on these same questions. This short check does not predict exam readiness.

1. Which preserves a name with spaces as one argument?

  1. "$name"
  2. An unquoted expansion everywhere
  3. Deleting spaces
Show answer and explanation for question 1

Correct answer: A. "$name"

Quoting preserves the intended argument.

2. Why use a fixed printf format?

  1. To keep input as data rather than format instructions
  2. To grant root access
  3. To change file ownership
Show answer and explanation for question 2

Correct answer: A. To keep input as data rather than format instructions

Data should not define the format string.

3. What should a missing input file produce?

  1. An explicit failure
  2. A normal zero-row success
  3. A silent deletion
Show answer and explanation for question 3

Correct answer: A. An explicit failure

Missing input is not the same as an empty valid input.

Sign in to take this free practice test and save your result.

Sign in