Questions
Questions
Single choice

Question at position 9  Given the following shell variable assignments, a=2; b=5; c=10 Which of the following conditions is true? [ $a –eq 3 –o $b –ge 5 ][ $b –gt 5 ][ $c = (3 + 7) ][ a –eq 2 ]

Options
A.[ $a –eq 3 –o $b –ge 5 ]
B.[ $b –gt 5 ]
C.[ $c = (3 + 7) ]
D.[ a –eq 2 ]
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
We start by restating the scenario: a=2; b=5; c=10, and we must evaluate each shell test condition. Option 1: [ $a –eq 3 –o $b –ge 5 ] Here, the first part tests if a equals 3, which is false since a=2. The second part tests if b is greater than or equal to 5, which is true since b=5. The -o operator means logical OR, so the overall expression......Login to view full explanation

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!