Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 702-100 Topic 1 Question 18 Discussion

Actual exam question for LPI's 702-100 exam
Question #: 18
Topic #: 1
[All 702-100 Questions]

Which of the following excerpts is a valid if condition in the Bourne shell?

A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Lawrence
3 months ago
I'm going to have to go with Option B. It's the only one that looks like it was actually written by someone who knows what they're doing in the Bourne shell.
upvoted 0 times
Thurman
2 months ago
Option B definitely stands out as the correct choice here.
upvoted 0 times
...
Han
2 months ago
I agree, Option B seems to be the most valid if condition.
upvoted 0 times
...
Isaiah
2 months ago
I think Option B is the correct one too.
upvoted 0 times
...
...
Arminda
3 months ago
Option A? Really? That looks more like JavaScript than Bourne shell. I'm pretty confident that's not a valid if condition in the shell.
upvoted 0 times
Miles
2 months ago
Let's go with Option B, that seems more likely to be a valid if condition.
upvoted 0 times
...
Walton
2 months ago
Yeah, Option A doesn't seem like a valid if condition in the Bourne shell.
upvoted 0 times
...
Miesha
3 months ago
I think you're right, Option A does look more like JavaScript.
upvoted 0 times
...
...
Jacquelyne
3 months ago
Hmm, this is a tricky one. I'm leaning towards Option D, but I'm not totally sure. Maybe I should have paid more attention in my shell scripting class.
upvoted 0 times
Raylene
2 months ago
Let's go with Option D then, it seems like the best choice.
upvoted 0 times
...
Tammara
2 months ago
I'm not sure, but Option D does look like a possible valid if condition.
upvoted 0 times
...
Nina
2 months ago
I agree, Option D seems like the most valid if condition.
upvoted 0 times
...
Aliza
3 months ago
I think Option D looks correct.
upvoted 0 times
...
...
Bettina
4 months ago
I'm going with Option C. The single square brackets `[` are also a valid way to write an if condition in the Bourne shell.
upvoted 0 times
Jutta
3 months ago
Yes, you're right. Option C with the single square brackets is a valid if condition in the Bourne shell.
upvoted 0 times
...
Myra
3 months ago
I think Option C is correct too. The single square brackets are commonly used in Bourne shell scripts.
upvoted 0 times
...
...
Vilma
4 months ago
Why do you think Option A is correct?
upvoted 0 times
...
Paola
4 months ago
I disagree, I believe Option A is the correct if condition.
upvoted 0 times
...
Demetra
4 months ago
Option B looks like the correct if condition in the Bourne shell. The use of the double square brackets `[[` is a common way to test conditions in shell scripting.
upvoted 0 times
Margarett
2 months ago
Yes, Option B with double square brackets `[[` looks like the valid if condition.
upvoted 0 times
...
Tabetha
3 months ago
Option B seems to be the most appropriate choice.
upvoted 0 times
...
Ronnie
3 months ago
I agree, using double square brackets `[[` is common in Bourne shell scripting.
upvoted 0 times
...
Jarod
3 months ago
I think Option B is the correct if condition.
upvoted 0 times
...
...
Vilma
4 months ago
I think the valid if condition in the Bourne shell is Option C.
upvoted 0 times
...

Save Cancel