essay
medium
Understand
quoting
2 points
Question 39. CSCD240-E1-B
var="Red Team". A) echo "Go $var" B) echo 'Go $var'. Output + explain difference.
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
A: "Go Red Team" (double quotes expand $var). B: "Go $var" (single quotes are literal).
Misconception bank
Each row below is a plausible wrong answer, the thinking that produces it, and the remedy that corrects the misconception. These are the foundation of the multiple-choice framing and the targeted feedback a student receives after answering.
Both print "Go Red Team"
Misconception. Treats quotes identically.
Remedy. Side-by-side demo.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
IT-451 System Administrator
DCWF tasks:
T0498
KU topics:
CD-BSP-T8a
NCAE errors:
WWW Content / failure: Failed to connect to hostWWW Content / timeout: TimeoutWWW Content / failure: Website cannot be reached
Course-artifact links
Lectures
- CSCD240-S26-L07. I/O redirection, aliases, source, .bashrc, env
Lab questions
- CSCD240-S26-LAB4: Set var="Stu Steiner". Show echo "$var" and echo '$var'.
CTF challenges
- 04 Environment & Patterns: Literal vs Expanded