What is the output of the following command sequence?
for token in a b c; do
echo -n "$token ";
done
Suggested Answer: B
Get Premium LFCS Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
IS
Isabella
1 year ago
The output will be "a b c" for sure!
LA
Laquanda
1 year ago
No way it's "token token token".
DO
Dorathy
1 year ago
Wait, is it really just "abc"? That seems off.
ST
Stefany
1 year ago
I think it's option B too!
KE
Kenneth
1 year ago
It's definitely a b c.
IL
Iluminada
1 year ago
I’m leaning towards option B, but I’m confused about whether the quotes around the tokens matter in the output.
RE
Refugia
1 year ago
This reminds me of a practice question where we had to loop through items. I feel like the answer is definitely not "token token token."
VI
Vivan
1 year ago
I'm not entirely sure, but I remember something about the `-n` flag preventing a newline, so maybe it just prints them all on one line?
EL
Elliott
1 year ago
I think the output should be "a b c" since the command is echoing each token with a space.
ME
Melvin
1 year ago
I'm a bit unsure about this one. The safety of the medications during pregnancy is really important, so I'll need to think through the options carefully.
RY
Ryan
1 year ago
Hmm, I'm a bit unsure about this one. I know mobile email management is important for security, but I'm not sure I can recall all the specific benefits. Let me think this through carefully.
AL
Aleisha
1 year ago
I think the data rate or QAM might be one of the elements, but I'm not sure about the others.