1.
What is the output of the following Perl code:
@
nums = (10..20);
print "Before - @nums
";

splice(@nums, 15, 15, 21..25);
print "After - @nums
";
2.
What is the output of the following Perl code:
$test = 2.3456;

{

    my $test = 5;

    print "Inside block, $test = $test ";

    print "Inside block, $:: test = $:: test ";

}

print "Outside the block, $test = $test ";

print "Outside the block, $:: test = $::test ";
3.
In Perl, which of the following datatypes includes the special variable $[?
4.
What is the output of the following Perl code snippet:
package X;
sub foo {
    print("Inside X::foo
");
}
package Z;@
ISA = (X);
sub foo {
    print("Inside Z::foo
");
}
package main;
Z - > foo();
5.
In Perl, why is the –i option used?
6.
Which of the following sets of Perl operators is in the correct order of precedence?
7.
In Perl, which of these functions is used to filter a list and return only the elements that match a certain condition?
8.
In Perl, which of the following is used to display the full name of a month?
9.
In Perl, which of the following is the process of a local variable giving temporary values to global variables?
10.
In Perl, which of the following operators is used to define private variables that maintain their state and do not get reinitialized upon multiple calls to the subroutines?