Q73
What will be the output of the command prompt l p g?
A.
<c:\>
B.
C:\>
AnswerC.
C:\>>
D.
C:<\>
Answer: Option B
Solution
Answer: Option B
Solution:
The command prompt string p$g typically represents:$l stands for the current drive letter, which is usually C.
$p stands for the path separator, which is typically \.
$g stands for the command prompt symbol, which is usually >.
When you combine these components:
p$g translates to C:\>.
Now, let's review the options provided:
Option A:
Option B: C:\> - This matches the expected output format of C:>, which is correct.
Option C: C:\>> - This includes an extra > which is not standard in DOS for the command prompt.
Option D: C:<\> - This format < > is not standard for representing the command prompt.
Therefore, upon reviewing again, Option B: C:\> is indeed the correct answer, representing the expected output of the command prompt string p$g in a DOS environment.