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.
A.a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
B.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
C.a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine
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
A.Brace expansion
B.Wildcard glob
C.Nullglob option
D.Character class bracket
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Wildcard glob — an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
B.Wildcard glob — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
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
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
A.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
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
C.generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
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
A.Wildcard glob
B.Character class bracket
C.Nullglob option
D.Brace expansion
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Brace expansion — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
B.Brace expansion — a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine
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
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
A.a glob fragment that matches a single character from an enclosed set or range, such as the digits zero through nine
B.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
C.a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
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
A.Brace expansion
B.Character class bracket
C.Nullglob option
D.Wildcard glob
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
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
B.Character class bracket — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
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
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
A.an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
B.generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
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
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
A.Character class bracket
B.Nullglob option
C.Extended globbing
D.Brace expansion
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Nullglob option — an opt-in mode enabling pattern operators for zero-or-more, exactly-one, or negation of grouped alternatives in filename matching
B.Nullglob option — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
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
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
A.a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
B.generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
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
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
A.Character class bracket
B.Brace expansion
C.Extended globbing
D.Nullglob option
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Extended globbing — a shell setting that makes an unmatched pattern expand to nothing instead of remaining as the literal pattern text
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
C.Extended globbing — generating multiple strings from a comma list or a numeric or alphabetic range enclosed in curly braces, done before variable substitution
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.