Multiple choice technology

print "You are well versed!"."\n"; What will be the output?

  1. Compilation error

  2. You are well versed!

  3. versed!

  4. You are well

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

The Perl print statement outputs the string "You are well versed!" followed by a newline character "\n". The semicolon terminates the statement. Perl's print function simply outputs the given string to STDOUT. Options C and D would only be true if we were using substring operations or different string splitting functions.