Question

Which of the following is the syntax for an `if` statement checking if a variable `NUM` is numerically equal to 5?

A `if [ $NUM == 5 ]; then ... fi`
B `if ($NUM = 5) then ... end if`
C `if [ $NUM -eq 5 ]; then ... fi`
D `if $NUM -eq 5 then ... fi`
E None of these
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)