After running this program, if you enter 1000, then what will be the output of the program?
#!/bin/bash
echo "Please enter a number"
read a
if [ $a -lt 100 ]; then
echo "It is less than 100";
elif [ $a -lt 1000 ]; then
echo "It is less than 1000"
else
echo "It is greater than 1000"
fi
exit 0
a) It is greater than 1000
b) It is less then 1000
c) It is equal to 1000
d) none of then mentioned
Submitted by: Murtazaa) It is greater than 1000
Submitted by: Murtaza
Submitted by: Murtaza
Read Online Bash Arithmetic Expressions Job Interview Questions And Answers
Top Bash Arithmetic Expressions Questions
☺ | Which command puts a script to sleep untill a signal is recieved? |
☺ | Which statement resumes the next iteration of a for, while, select, or until loop? |
☺ | Which command sets up shorthand for command or command line? |
☺ | Which command concatenate the specified argument into a single command, then execute the command? |
☺ | Which command identifies the resource of a command? |
Top Linux OS Categories
☺ | Device Drivers Interview Questions. |
☺ | Linux OS Management Interview Questions. |
☺ | Linux Makefile Interview Questions. |
☺ | Linux Environment Interview Questions. |
☺ | Linux OS Shell Interview Questions. |