Q. What is the output of the following program? x = 3; y = 5; z = 10;
if [( $x -eq 3 ) -a ( $y -eq 5 -o $z -eq 10 )] then
echo $x else
echo $y
fi

  • (A) 1
  • (B) 3
  • (C) 5
  • (D) error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
602
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
84%
Success Rate