5. After running this program, as you press 's', what will be the output of the program?
#!/bin/bash
echo "press 's' to print interviewquestionsanswers"
read var
if $var=s
then
echo "interviewquestionsanswers"
else
echo "You did not press s"
fi
exit 0
a) interviewquestionsanswers
b) You did not press s
c) program will generate an error message
d) none of the mentioned

Submitted by: Murtaza
c) program will generate an error message
Submitted by: Murtaza

Read Online Bash Arithmetic Expressions Job Interview Questions And Answers