Question: Question 76 (1 point) The following echo statement will execute _________time(s). ((t=10)) while [ $t -ge 10 ] && [ $t le 15 ] do
Question 76 (1 point)
The following echo statement will execute _________time(s).
((t=10))
while [ $t -ge 10 ] && [ $t le 15 ]
do
echo "Have a nice day!"
((t--))
done
Question 76 options:
|
|
0
|
|
|
1
|
|
|
2
|
|
|
an infinite number of
|
|
|
None of the above
|
Question 80 (1 point)
#!/bin/bash
# This program is used to determine the price of an
# admission ticket based upon the age of the movie goer
childprice=5
adultprice=10
seniorprice=6
read -p "Enter your age: " age
case $age in
[0-9]|[1][0-2]) echo "price is child's price of " $childprice ;;
[1][3-9]|[2-5][0-9]) echo "price is adult price of " $adultprice ;;
[6-9][0-9]) echo "price is senior price of " $seniorprice ;;
*) echo "Invalid input" ;;
Esac
In the above program, the following line
[1][3-9]|[2-5][0-9]) echo "price is adult price of " $adultprice ;;
Will match all movie goers
Question 80 options:
|
|
between ages 12 to 60
|
|
|
between ages 13 to 59
|
|
|
greater than age 19
|
|
|
greater than age 60 but less than age 99
|
|
|
between ages 0 to 12
|
just the answer plz
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
