Home »
MCQs »
Perl Programming MCQs
What will be the output of the following Perl code (2)?
35. What will be the output of the following Perl code?
$val1 = 5;
$val2 = 10;
$result = $val1 == $val2 ? $val1 : $val2;
print "$result"
- 5
- 15
- 10
- 20
Answer: C) 10