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
1 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
Han
10 days ago
I agree, Option B seems to be the most valid if condition.
upvoted 0 times
...
Isaiah
11 days ago
I think Option B is the correct one too.
upvoted 0 times
...
...
Arminda
1 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
11 days ago
Let's go with Option B, that seems more likely to be a valid if condition.
upvoted 0 times
...
Walton
16 days ago
Yeah, Option A doesn't seem like a valid if condition in the Bourne shell.
upvoted 0 times
...
Miesha
24 days ago
I think you're right, Option A does look more like JavaScript.
upvoted 0 times
...
...
Jacquelyne
2 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
Tammara
7 days ago
I'm not sure, but Option D does look like a possible valid if condition.
upvoted 0 times
...
Nina
11 days ago
I agree, Option D seems like the most valid if condition.
upvoted 0 times
...
Aliza
26 days ago
I think Option D looks correct.
upvoted 0 times
...
...
Bettina
2 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
27 days 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
1 months ago
I think Option C is correct too. The single square brackets are commonly used in Bourne shell scripts.
upvoted 0 times
...
...
Vilma
2 months ago
Why do you think Option A is correct?
upvoted 0 times
...
Paola
2 months ago
I disagree, I believe Option A is the correct if condition.
upvoted 0 times
...
Demetra
2 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
21 days ago
Yes, Option B with double square brackets `[[` looks like the valid if condition.
upvoted 0 times
...
Tabetha
29 days ago
Option B seems to be the most appropriate choice.
upvoted 0 times
...
Ronnie
1 months ago
I agree, using double square brackets `[[` is common in Bourne shell scripting.
upvoted 0 times
...
Jarod
1 months ago
I think Option B is the correct if condition.
upvoted 0 times
...
...
Vilma
2 months ago
I think the valid if condition in the Bourne shell is Option C.
upvoted 0 times
...

Save Cancel