Multiple choice technology programming languages

print 12e-02;

  1. 0.12

  2. 12

  3. 120

  4. 0.012

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

In Perl, 12e-02 uses scientific notation (e-02 means 'times 10 to the power of -2'). So 12 × 10^(-2) = 12 × 0.01 = 0.12. The 'e' notation represents exponents in base 10, not Euler's number. When printed, this evaluates to 0.12.