Globbing & Patterns interview questions

15 real Globbing & Patterns questions from the Bash bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Globbing & Patterns free