Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
Thurman
8 days ago
Option B definitely stands out as the correct choice here.
upvoted 0 times
...
Han
18 days ago
I agree, Option B seems to be the most valid if condition.
upvoted 0 times
...
Isaiah
19 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
19 days ago
Let's go with Option B, that seems more likely to be a valid if condition.
upvoted 0 times
...
Walton
24 days ago
Yeah, Option A doesn't seem like a valid if condition in the Bourne shell.
upvoted 0 times
...
Miesha
1 months 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
Raylene
6 days ago
Let's go with Option D then, it seems like the best choice.
upvoted 0 times
...
Tammara
15 days ago
I'm not sure, but Option D does look like a possible valid if condition.
upvoted 0 times
...
Nina
19 days ago
I agree, Option D seems like the most valid if condition.
upvoted 0 times
...
Aliza
1 months 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
1 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
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
29 days ago
Yes, Option B with double square brackets `[[` looks like the valid if condition.
upvoted 0 times
...
Tabetha
1 months 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
2 months ago
I think Option B is the correct if condition.
upvoted 0 times
...
...
Vilma
3 months ago
I think the valid if condition in the Bourne shell is Option C.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77