NCAE Mapping Hub
Overview Scoreboard Data Roles Exercised Checklists Lessons Skill Drills Practice Terminal Progress
multiple_choice hard Apply glob 2 points

Question 12. CSCD240-E1-C

Which glob matches filenames starting with "log" and ending with any digit?

Work the drill

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

Ideal answer
C: log*[0-9]

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.

A: log*
Misconception. Matches any filename starting log (no digit constraint).
Remedy. Narrow the suffix.
B: log?
Misconception. Matches 4-char filenames only (log + 1 char), not digit-specific.
Remedy. ? = any 1 char; [0-9] = any 1 digit.
D: log[0-9]
Misconception. Matches exactly one digit after log, so log5 matches but not log12.
Remedy. * + [0-9] allows any suffix ending in digit.

Authority mappings

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

DCWF tasks: T0498
KU outcomes: CD-BSP-O6
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