Vidyalelo
Computer Science · Q231

Linux

Engineering and GATE · Computer Science · question 231

Q231

How can you come out of the loop in this program? #!/bin/bash read x while [ x != "hello" ] do echo "Try to come out of the loop" read x done echo "Welcome" exit 0

A.
by entering "hello"
Answer
B.
by entering anything except "hello"
C.
it is not possible
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board