30.9k views
0 votes
Which statement best describes when Variable Substitution (expansion) can occur?

a) inside of single quotes
b) inside of double quotes
c) inside of backquotes
d) B & C

User PrasadU
by
5.6k points

2 Answers

5 votes

Answer: (A) Inside of single quotes

Step-by-step explanation:

The variable substitution or we can say that expansion occur inside the single quotes because the generation of the file name typically happened inside the single quotes only.

When we enclosing the character and different types of variable with the single quotes ( ' ) then, it basically represent the actual value of the characters. In this way, the estimation of any factor can't be perused by single statement and a solitary statement can't be utilized inside another single quote statements.

User Saheb Roy
by
6.0k points
2 votes

Answer: d) B & C

Step-by-step explanation: Variable substitution is the method through which the command substitution is done for the other form of command and regains its value or meaning.

This value substitution is done with the help of double quotes("...") which are inverted as well when a new form of command is to be introduced and it is known as back quotes. Other given options are incorrect because it is not determined in single quotes.Thus the correct option is option (d).

User Simplesystems
by
5.3k points