18 Special Variables 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.the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
B.the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
C.the special parameter that expands to how many positional arguments were supplied, read as dollar-hash
D.the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
Answer + AI explanation with Pro
2. Which term means: "the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark"?
Junior
A.Background PID variable
B.Exit code variable
C.Argument count variable
D.Quoted all-arguments array
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Exit code variable — the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
B.Exit code variable — the special parameter that expands to how many positional arguments were supplied, read as dollar-hash
C.Exit code variable — the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
D.Exit code variable — the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
Answer + AI explanation with Pro
4. What is Script name variable?
Junior
A.the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at
B.the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
C.the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
D.the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
Answer + AI explanation with Pro
5. Which term means: "the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero"?
Junior
A.Script name variable
B.Quoted all-arguments array
C.Exit code variable
D.Joined all-arguments string
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Script name variable — the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
B.Script name variable — the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at
C.Script name variable — the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
D.Script name variable — the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
Answer + AI explanation with Pro
7. What is Argument count variable?
Mid
A.the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
B.the special parameter that expands to how many positional arguments were supplied, read as dollar-hash
C.the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
D.the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
Answer + AI explanation with Pro
8. Which term means: "the special parameter that expands to how many positional arguments were supplied, read as dollar-hash"?
Mid
A.Quoted all-arguments array
B.Joined all-arguments string
C.Background PID variable
D.Argument count variable
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Argument count variable — the special parameter that expands to how many positional arguments were supplied, read as dollar-hash
B.Argument count variable — the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at
C.Argument count variable — the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
D.Argument count variable — the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
Answer + AI explanation with Pro
10. What is Quoted all-arguments array?
Mid
A.the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
B.the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
C.the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at
D.the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
Answer + AI explanation with Pro
11. Which term means: "the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at"?
Mid
A.Exit code variable
B.Argument count variable
C.Joined all-arguments string
D.Quoted all-arguments array
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Quoted all-arguments array — the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at
B.Quoted all-arguments array — the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
C.Quoted all-arguments array — the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
D.Quoted all-arguments array — the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
Answer + AI explanation with Pro
13. What is Joined all-arguments string?
Senior
A.the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
B.the special parameter that expands to how many positional arguments were supplied, read as dollar-hash
C.the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at
D.the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
Answer + AI explanation with Pro
14. Which term means: "the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star"?
Senior
A.Exit code variable
B.Background PID variable
C.Script name variable
D.Joined all-arguments string
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Joined all-arguments string — the special parameter that expands to how many positional arguments were supplied, read as dollar-hash
B.Joined all-arguments string — the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
C.Joined all-arguments string — the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
D.Joined all-arguments string — the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
Answer + AI explanation with Pro
16. What is Background PID variable?
Mid
A.the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
B.the parameter that, when double quoted, fuses every positional argument into one word joined by the first field-separator character, written as dollar-star
C.the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
D.the special parameter that expands to the name the current script or shell was invoked under, read as dollar-zero
Answer + AI explanation with Pro
17. Which term means: "the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang"?
Mid
A.Argument count variable
B.Background PID variable
C.Exit code variable
D.Script name variable
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.Background PID variable — the special parameter holding the numeric result of the most recently completed foreground command, read as dollar-question-mark
B.Background PID variable — the special parameter that expands to how many positional arguments were supplied, read as dollar-hash
C.Background PID variable — the special parameter holding the process id of the most recently started asynchronous command, read as dollar-bang
D.Background PID variable — the parameter that, when double quoted, expands to each positional argument as its own separate word, written as dollar-at
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 Special Variables question come with Pro.