Free LPI 010-160 Actual Exam Questions - Question 12 Discussion
Question No. 12
FILL BLANK
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any
additional
information.)
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any
additional
information.)
US
MG
Marco G.
2026-02-15
“for” is usually the default loop keyword in most shell scripts.
0
SI
Sohail I.
2026-02-10
I’d go with “while” here since it’s another basic loop keyword that actually starts a loop in shell scripts. It fits the question as a single keyword without extra info, and it’s used pretty universally across shells. Since the question doesn’t specify which loop type or shell to focus on, “while” works as an independent answer from “for.”
0
OG
Omar G.
2026-01-20
I’d say it’s “for” because that’s the most common loop start keyword in shell scripting. While other loop types exist like “while” or “until,” the question seems to want just one keyword that begins a loop, so “for” fits best here. Also, “for” is pretty standard across different shells.
0
EB
Ethan B.
2026-01-17
for
0