Perl Programming Fundamentals
Covers essential Perl concepts including regex, variables, file I/O, and command-line options
Questions
Question 1 Multiple Choice (Single Answer)
In Perl, a/n ________ is a special character or a sequence that will define the number of times the previous character or sequence appears.
- character class
- metacharacter
- assertion
- quantifier
Question 2 Multiple Choice (Single Answer)
In Perl, the following will result in which of the following, if the prize is currently "5 dollars" print 'You won $prize';
- You won $5.00
- You won 5 dollars
- You won $prize
- You won $5
Question 3 Multiple Choice (Single Answer)
In Perl, the words function and subroutines are used interchangeably.
- True
- False
Question 4 Multiple Choice (Single Answer)
In Perl, which of the following are file handles?
- stdquit
- stdend
- stdin
- stdout
- C&D
Question 5 Multiple Choice (Single Answer)
In Perl, which switch is used for printing out warnings about typographical errors in your script?
- -P
- -W
- -p
- -w
Question 6 Multiple Choice (Single Answer)
In Perl, "stat" returns a thirteen element array with which of the following values?
- Perl version ID
- Web server ID
- Last access
- Inode number
- C&E
Question 7 Multiple Choice (Single Answer)
CGI is a programming language.
- True
- False
Question 8 Multiple Choice (Single Answer)
In Perl, scalar variables always begin with a ________ sign.
- #
- @
- %
- $