Globbing & Patterns interview questions

15 Globbing & Patterns questions from the Bash bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Wildcard glob?

Junior
  1. A.a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
  2. B.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
  3. C.a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine
  4. D.filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command

Answer + AI explanation with Pro

2. Which term means: "filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command"?

Junior
  1. A.Brace expansion
  2. B.Wildcard glob
  3. C.Nullglob option
  4. D.Character class bracket

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Wildcard glob — an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
  2. B.Wildcard glob — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
  3. C.Wildcard glob — filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  4. D.Wildcard glob — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text

Answer + AI explanation with Pro

4. What is Brace expansion?

Junior
  1. A.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
  2. B.filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  3. C.generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
  4. D.a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine

Answer + AI explanation with Pro

5. Which term means: "generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution"?

Junior
  1. A.Wildcard glob
  2. B.Character class bracket
  3. C.Nullglob option
  4. D.Brace expansion

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Brace expansion — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
  2. B.Brace expansion — a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine
  3. C.Brace expansion — filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  4. D.Brace expansion — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text

Answer + AI explanation with Pro

7. What is Character class bracket?

Mid
  1. A.a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine
  2. B.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
  3. C.a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
  4. D.generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution

Answer + AI explanation with Pro

8. Which term means: "a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine"?

Mid
  1. A.Brace expansion
  2. B.Character class bracket
  3. C.Nullglob option
  4. D.Wildcard glob

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Character class bracket — a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine
  2. B.Character class bracket — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
  3. C.Character class bracket — filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  4. D.Character class bracket — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution

Answer + AI explanation with Pro

10. What is Nullglob option?

Mid
  1. A.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
  2. B.generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
  3. C.filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  4. D.a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text

Answer + AI explanation with Pro

11. Which term means: "a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text"?

Mid
  1. A.Character class bracket
  2. B.Nullglob option
  3. C.Extended globbing
  4. D.Brace expansion

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Nullglob option — an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
  2. B.Nullglob option — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
  3. C.Nullglob option — filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  4. D.Nullglob option — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution

Answer + AI explanation with Pro

13. What is Extended globbing?

Senior
  1. A.a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
  2. B.generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
  3. C.filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  4. D.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching

Answer + AI explanation with Pro

14. Which term means: "an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching"?

Senior
  1. A.Character class bracket
  2. B.Brace expansion
  3. C.Extended globbing
  4. D.Nullglob option

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.Extended globbing — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
  2. B.Extended globbing — filename expansion where a star matches any run of characters and a question mark matches exactly one, performed by the shell before running the command
  3. C.Extended globbing — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
  4. D.Extended globbing — an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Globbing & Patterns question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers