BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Arista Exam ACE-P-ALE1.04 Topic 4 Question 82 Discussion

Actual exam question for Arista's ACE-P-ALE1.04 exam
Question #: 82
Topic #: 4
[All ACE-P-ALE1.04 Questions]

In bash scripting, which of the following is NOT valid way of evaluating an arithmetic expression?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Ira
4 months ago
That's a good point, maybe D) let is the valid way to evaluate arithmetic expressions
upvoted 0 times
...
Daron
5 months ago
I think $[] is incorrect because it is used for array references, not arithmetic evaluations
upvoted 0 times
...
Jeanice
5 months ago
But I have seen scripts that use ${} to evaluate arithmetic expressions
upvoted 0 times
...
Ira
5 months ago
I think D) let is not a valid way to evaluate an arithmetic expression
upvoted 0 times
...
Daron
5 months ago
I disagree, I believe the correct answer is C) $[]
upvoted 0 times
...
Jeanice
5 months ago
I think the answer is B) ${}
upvoted 0 times
...
Daryl
5 months ago
I think A) $(( )) is not valid either, you don't need the double parentheses.
upvoted 0 times
...
Roosevelt
6 months ago
I disagree, $[] is actually a valid way. D) let is the one that is not valid.
upvoted 0 times
...
Krissy
6 months ago
I believe C) $[] is also not a valid way of evaluating an arithmetic expression.
upvoted 0 times
...
Roosevelt
7 months ago
I think B) {} is not a valid way of evaluating an arithmetic expression.
upvoted 0 times
...

Save Cancel