Multiple choice technology operating systems

What is the output of the following echo My && echo little || echo world

  1. My little world

  2. My little

  3. My world

  4. little world

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Shell logic: && runs if left succeeds (echo My succeeds), || runs if left fails. 'echo My' succeeds, so 'echo little' runs. Since 'echo little' succeeds, 'echo world' is skipped. Output: 'My' then 'little'.