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?
- "$name"
- An unquoted expansion everywhere
- 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?
- To keep input as data rather than format instructions
- To grant root access
- 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?
- An explicit failure
- A normal zero-row success
- 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