Multiple choice technology programming languages

$string = “\uhello world!”; print $string; $string = “\Uhello world!”; print $string;

  1. Hello world HELLO WORLD.

  2. Hello World HELLO WORLD.

  3. Hello world HELLO world.

  4. hello world HELLO WORLD.

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

In Perl, \u uppercases the next character only, so \uhello becomes Hello. \U uppercases ALL characters until \E, so \Uhello becomes HELLO. The first line prints 'Hello world' and the second prints 'HELLO WORLD'. This matches option A.