Question

    Read the below passage and answer the questions Shell can be accessed by users using a command line interface. A special program called Terminal in Linux/macOS, or Command Prompt in Windows OS is provided to type in the human-readable commands A program which is responsible for providing an interface to a user so that he/she can access the shell. It basically allows users to enter commands and see the output of those commands in a text-based interface.    As a shell can also take commands as input from file, we can write these commands in a file and can execute them in shell to avoid this repetitive work. These files are called  Shell Scripts  or  Shell Programs . Shell script comprises the following elements – ·         Shell Keywords – if, else, break etc. ·         Shell commands – cd, ls, echo, pwd, touch etc. ·         Functions ·         Control flow – if..then..else, case and shell loops etc.

    To exit from a loop in shell we can use?

    A return Correct Answer Incorrect Answer
    B break Correct Answer Incorrect Answer
    C goto Correct Answer Incorrect Answer
    D get Correct Answer Incorrect Answer
    E return type Correct Answer Incorrect Answer

    Solution

    The correct answer is B

    Practice Next