Weekend Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free CIW 1D0-437 Practice Exam with Questions & Answers | Set: 3

Questions 21

Consider the following program code:

%color = (sun => yellow, apple => red);

reverse(%color);

@colorKeys = sort(keys(%color));

foreach(@colorKeys)

{

print($color{$_} . );

}

What is the result of executing this program code?

Options:
A.

The code will output the following:

apple sun

B.

The code will output the following:

sun apple

C.

The code will output the following:

red yellow

D.

The code will output the following:

apple red sun yellow

CIW 1D0-437 Premium Access
Questions 22

Which one of the following choices lists only valid expression operators?

Options:
A.

+ - ** //

B.

* ** / //

C.

** / ++ %

D.

*/ % -- **

Questions 23

Consider the following command:

perl runme.pl arg1 arg2 arg3

Given this command issued on the command line, what is the value of @ARGV?

Options:
A.

arg1

B.

runme.pl

C.

arg1 arg2 arg3

D.

2

Questions 24

Consider the following program code:

$x = 5;

$y = 10;

while (++$x < 10 && ++$y < 15)

{

print ($x $y );

}

print ($x $y );

What is the result of executing this program code?

Options:
A.

The code will output the following:

6 11 7 12 8 13 9 14 10 15

B.

The code will output the following:

6 11 7 12 8 13 9 14 10 14

C.

The code will output the following:

5 10 6 11 7 12 8 13 9 13

D.

The code will output the following:

5 10 6 11 7 12 8 13 9 14

Questions 25

In Perl, modules are used for which task?

Options:
A.

To organize packages

B.

To provide code reusability

C.

To separate code in a file

D.

To create separate namespaces

Questions 26

Which one of the following choices uses the correct syntax for a valid array assignment?

Options:
A.

@cities = Akron, Memphis, Ogden, Phoenix;

B.

@cities =~ ("Akron, Memphis");

C.

@cities =~ (Akron, Memphis, Ogden, Phoenix);

D.

@cities = ("Akron");

Questions 27

Consider the following program code:

@array = ("one", "two");

push(@array, "three");

shift(@array);

unshift(@array, "four");

pop(@array);

print($array[0]);

What is the output of this code?

Options:
A.

one

B.

two

C.

three

D.

four

Questions 28

The values function performs which task?

Options:
A.

Generates a list of hash keys

B.

Generates a list of hash values

C.

Returns the number of key/value pairs

D.

Reads the hash values into an array

Questions 29

In the context of Perl user-defined subroutines, which statement is the most accurate?

Options:
A.

Variables declared using the my keyword are global in scope.

B.

Variables declared using the local keyword are only available to the subroutine from which they are declared.

C.

Variables declared using the my keyword are available to the calling subroutine.

D.

Variable declared using the local keyword are available to subsequently called subroutines.

Questions 30

Yngve wants to define a character class that includes any alphanumeric word characters. Which one of the following choices is best suited for this requirement?

Options:
A.

/[a-zA-Z_0-9]/;

B.

/^w/;

C.

/[^a-zA-Z_0-9]/;

D.

/[^0-Z$]/;