Multiple choice technology programming languages

By default all our code is placed in one package called main

  1. True

  2. False

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

In Perl, code is NOT placed in a package called 'main' by default. The 'main' package exists as a special package for main program scope, but package declarations are explicit. Without a package declaration, code compiles in the current package (which may be 'main' initially but isn't automatically enforced as a container). Perl's default behavior differs from some other languages.