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
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
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"?
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
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
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"?
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
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
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
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
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
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"?
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
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.