1.
In Perl, which of the following is used to first create and then remove a new directory?
2.
In Perl, which of the following is NOT a regular expression operator?
3.
What is the output of the following Perl code:
my $a = (0, 1, 2);

print "$a ";
4.
What is the output of the following Perl code:
my $a = 123456;
my $b = 123 _456;

if ($a == $b) {
    print "same";
} else {
    print "different";
}
5.
Which of these rules must be followed by modules in Perl:
1. The filename of a module must be the same as the package name.
2. The filename of a package must always begin with a capital letter.
3. All filenames must have the extension pm.
4. If an object-oriented technique is not used, then the package must be derived from the Exporter class.
6.
In Perl, what does $dt->secular_era() return?
7.
In Perl, which of the following is used to identify the reference type of a variable?
8.
In Perl, which of the following are true for strftime patterns:
a) %A - Displays the abbreviated weekday name
b) %F - Equivalent to %y-%m-%d (ISO 8601 date format)
c) %H - Displays the hour as a decimal number using the 12-hour clock
d) %t - A tab character
e) %T - Displays the time using the 24-hour clock
9.
In Perl, which of the following is used to print an array @arr in reverse, regardless of a case-sensitive order?
10.
In Perl, which of the following is used to remove duplicate elements from an array @array?