Multiple choice technology programming languages

Which of the following block executes at compile time?

  1. END

  2. BEGIN

  3. CHECK

  4. INIT

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

BEGIN blocks execute at compile time in Perl, before most of the script is parsed. This makes them ideal for initialization tasks like loading modules. END blocks run at program termination, CHECK runs after compilation but before execution, and INIT runs at the start of execution.