FILL in BLANK
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional
information.)
Suggested Answer: A
Get Premium 010-160 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
The keyword for is used in a shell script to begin a loop that iterates over a list of items or a range of numbers. The syntax of the for loop is as follows:
for <var> in <list> do <commands> done
30 comments · newest first
AL
Albina
6 months ago
Simple question, just "for".
RI
Ria
6 months ago
I hope they don't ask for more details!
PA
Paris
6 months ago
"for" loops are common in scripts.
YO
Yolando
7 months ago
Yeah, "for" is definitely the keyword.
DA
Daren
7 months ago
I think it's "for".
RO
Ronald
7 months ago
Yup, "for" is the one!
VI
Virgie
8 months ago
Wait, is it really just "for"?
LA
Lashandra
8 months ago
I thought it was "while"?
GL
Glory
8 months ago
Definitely "for"!
JI
Jillian
8 months ago
for, because that's the only loop keyword I know. What, you want me to know more than one? I'm not a computer nerd!
GE
Gerardo
8 months ago
for
RI
Rima
8 months ago
for
MA
Margart
9 months ago
for
JO
Jospeh
9 months ago
I’m a bit confused; I thought both "for" and "while" could start loops, but I guess I need to pick one.
CA
Cathrine
9 months ago
I feel like I’ve seen "while" used in similar questions, but "for" seems more common for starting loops.
NI
Nickolas
9 months ago
I remember practicing loops in shell scripts, and "for" definitely sounds familiar.
SA
Sabra
9 months ago
I think the keyword might be "for," but I'm not entirely sure. It could also be "while."
BL
Blythe
9 months ago
Uh, what was the loop keyword again? I'm drawing a blank here.
EL
Elouise
10 months ago
Ah, I know this one! The keyword is 'for'. Easy peasy.
RO
Rodrigo
10 months ago
The loop keyword in shell scripts is 'for'. I'm pretty confident about that.
PA
Pamella
10 months ago
for
LI
Lindsey
10 months ago
I feel confident about this one.
GA
Gabriele
10 months ago
for
TR
Trevor
11 months ago
Ugh, I can never remember the right loop keyword in shell scripts. Let me think about this...
CO
Cortney
11 months ago
Hmm, I think the keyword is 'for', but I'm not totally sure.
YU
Yuette
5 months ago
I'm pretty confident it's 'for' as well!
CR
Crista
5 months ago
'For' loops are so common in shell scripts.
LU
Ludivina
6 months ago
I remember learning that in my scripting class.
LE
Leontine
6 months ago
Yeah, 'for' is definitely the right choice.
NO
Novella
6 months ago
I believe it's 'for' too.