📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    What will be the output of the following script

    snippet?     for item in Apple Banana Cherry; do   echo $item done
    A Apple Banana Cherry Correct Answer Incorrect Answer
    B Apple Correct Answer Incorrect Answer
    C Banana Cherry Correct Answer Incorrect Answer
    D item item item Correct Answer Incorrect Answer
    E Error: Syntax incorrect Correct Answer Incorrect Answer

    Solution

    Apple\nBanana\nCherry (each on a new line)

    Practice Next
    ask-question