Predict the output

num_arr=(1 2 3 4 5 6 7)
value=1
for i in ${num_arr[*]}
do
    if [ `expr $i % 2 ` -eq 0 ];then
 	value=`expr $value \* $i`
    else
	value=`expr $value \* $i`
    fi
done
echo $value 

105

48

5040

42

Verified Answer
Correct Option - c

To get all Infosys Certified Unix Associate Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in