Quiz Answer Key and Fun Facts
1. Officially, what does "Perl" stand for?
2. What Perl function will remove a trailing newline from a string, but no other characters?
3. The keywords 'for' and 'foreach' are synonyms, and can be used interchangably.
4. Who is the creator and primary maintainer of Perl?
5. Which of these functions does NOT operate on an array?
6. If @array contains (5, 10, 15), and I assign $x = @array;, then what value is stored in $x?
7. Which of the following is a valid scalar variable name?
8. Which of the following strings would this pattern successfully match: /^[a-z]+_[0-9][0-9]$/ ?
9. If @array contains (5, 10, 15), what does $#array contain?
10. Which of the following keywords are used to define a subroutine in Perl?
Source: Author
mritty
This quiz was reviewed by FunTrivia editor
crisw before going online.
Any errors found in FunTrivia content are routinely corrected through our feedback system.