## 2014 Latest Pass4sure&Lead2pass CIW 1D0-437 Dumps

Vendor: CIW
Exam Code: 1D0-437
Exam Name: CIW Perl Specialist

QUESTION 1
Consider the following command:
perl1 runme.pl arg1 arg2 arg3
Given this command issued on the command line, what is the value of \$#ARGV?

A.    0
B.    1
C.    2
D.    3

QUESTION 2
Consider the following code:
\$_ = "New York";
@array2 = split(//);
What is the value of \$array2 after the code is executed?

A.    ""
B.    "N e w"
C.    "NewYork"
D.    "N"

QUESTION 3
Consider the following program code:
\$y – "1";
\$x = "2";
\$z = "3";
do
{
print ("\$y ");
} while (\$y eq "2");
do
{
print ("\$x ");
} until (\$x eq "2");
print ("\$z ");
What is the result of executing this program code?

A.    The code will output the following
1 2 3
B.    The code will output the following
C.    The code will output the following
3 2
D.    The code will output the following
3 2 1

QUESTION 4
Consider the following program code:
%hash = ("small" -> "Boz",
"medium" => "16oz",
"large" => "32oz");
@keys = sort(keys(%hash));
for (\$i = 0; \$i < 3; \$i++) {
print("\$hash{\$keys[\$i]}\n");
}
What is the result of executing this program code?

A.    The code will fail at line 1 because a hash cannot contain both numeric and string data.
B.    The code will execute without error but will output nothing.
C.    The will output the following 32oz 16oz 8oz
D.    The code will output the following large medium small

QUESTION 5
Which of the following choices demonstrates the correct syntax to pass a reference to a subroutine?

A.    \@array4;
B.    @array4(\$ref);
C.    getpass(\@array4);
D.    getpass{@array4};

QUESTION 6
Consider the following program code:
\$x – 0;
\$y = 5;
do
{
print ("\$x \$y ");
) while (++\$x < 5 && ++\$y < 10);
print ("\$x \$y ");
What is the result of executing this program code?

A.    The code will output the following
1 6 2 7 3 8 4 8 5 10 6 11
B.    The code will output the following
0 5 1 6 2 7 3 8 4 9 4 9
C.    The code will output the following
0 5 1 6 2 7 3 8 4 9 5 10
D.    The code will output the following
0 5 1 6 2 7 3 8 4 9 5 9

QUESTION 7
Consider the following statement:
@array1 = (9, "A", 0..9, "PERL");
Given this statement, @array1 consists of how many elements?

A.    13
B.    4
C.    12
D.    16

QUESTION 8
Consider the following program code:
%_Nifty = (one, two, three, four);
@NiftyKeys = sort(keys(%_Nifty));
foreach(@NiftyKeys)
{
print (\$_Nifty{\$_} . );
}
What is the result of executing this program code?

A.    The code will output the following:
one three
B.    The code will output the following:
four two
C.    The code will output the following:
two four
D.    The code will output the following:
four one three two