Multiple choice technology programming languages

if(143 lt 34) { print “If is true”; } else { print “If is false”; }

  1. If is true

  2. If is false

  3. Error

  4. No output

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Perl uses lt for string (lexicographic) comparison, not numeric. 143 lt 34 compares character by character: '1' vs '3' - in ASCII, '1' (49) is less than '3' (51), so the condition is true and it prints If is true.