NCAE Mapping Hub
Overview Scoreboard Data Roles Exercised Checklists Lessons Skill Drills Practice Terminal Progress
performance medium Apply globbing 2 points

Question 28. CSCD240-E1-A

Files: data, data1, data12, data2. Display only data1 and data12 via ls.

Work the drill

Answer on paper or in a terminal before revealing the ideal answer.

Ideal answer
ls data1*
Acceptable alternatives: ["cat data1*", "ls data1 data12 (hardcoded, full credit)"]

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.

ls data*
Misconception. Matches all four (includes data and data2).
Remedy. Refine the glob to be more specific — anchor on "data1".
ls data?
Misconception. Matches only data1 and data2 (one char each), misses data12.
Remedy. Teach: ? = exactly one char.
ls data1?
Misconception. Matches only data12 (one char after data1), misses data1 itself.
Remedy. Test each glob against the four filenames during review.

Authority mappings

Hover any chip for the mapping justification; click to open the authority record.

DCWF tasks: T0498
KU outcomes: CD-BSP-O6CO-M5-O2
KU topics: CD-BSP-T3

Course-artifact links

Lectures

  • CSCD240-S26-L03. Files, directories, file command, wildcards, viewing

Lab questions

  • CSCD240-S26-LAB2: Given 6 files, which files does ls *.txt match? ls file?.txt? ls file[0-9].txt?

CTF challenges

  • 04 Environment & Patterns: Match Anything
  • 04 Environment & Patterns: Exactly One Character