Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

CIW 1D0-437 - CIW PERL FUNDAMENTALS

Page: 1 / 5
Total 149 questions

Running your Perl scripts with a w switch will perform which task?

A.

Print all commands to the screen

B.

Print warnings to the error.log file

C.

Print check points in loops

D.

Print warnings to the screen

Which keyword indicates an object reference rather than a variable reference?

A.

return

B.

bless

C.

package

D.

object

Consider the following code:

%hashA = ("alpha", "beta", "gamma", "alpha");

%hashA = reverse(%hashA);

print $hashA{"alpha"};

What is the result of executing this code?

A.

The code outputs the following:

alpha

B.

The code outputs the following:

beta

C.

The code outputs the following:

gamma

D.

The code fails at line 3.

Consider the following program code:

$x = 10;

LOOP: while ($x < 15)

{

print ($x );

if ($x >= 14 && $x <= 20)

{

$x += 2;

redo LOOP;

}

else

{

$x++;

}

}

What is the result of executing this program code?

A.

The code will output the following:

11 12 13 14 15 16 17 18 19

B.

The code will output the following:

10 11 12 13 14 16 18 20 22

C.

The code will output the following:

10 11 12 13 14 16 18 20

D.

The code will output the following:

10 11 12 13 14 15 16 17 18 19 20

In Perl, packages are used for which task?

A.

To label a program

B.

To encrypt a program

C.

To create new keywords

D.

To define a namespace

Consider the program code in the attached exhibit. What is the result of executing this program code?

A.

The code will output the following:

3 4

B.

The code will output the following:

1 2 3 4

C.

The code will output the following:

1 2 4 5

D.

The code will output the following:

1 2 5

Which one of the following choices will replace all occurrences of the word perl with the word Perl?

A.

s/Perl/perl/I;

B.

s/"perl"/"Perl"/g;

C.

s/"perl"/"Perl"/;

D.

s/perl/Perl/g;

Consider the following code block:

BEGIN {print ("Jan ");}

BEGIN {print ("Feb ");}

END {print ("Mar ");}

END {print ("Apr ");}

Print ("May ");

What is the result of this code block?

A.

Jan Feb May Apr Mar

B.

Jan Feb Mar Apr May

C.

Mar Apr May Jan Feb

D.

May Jan Feb Mar Apr

Consider the following command:

perl runme.pl arg1 arg2 arg3

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

A.

arg1

B.

runme.pl

C.

arg1 arg2 arg3

D.

2

Consider the program code in the attached exhibit. What is the result of executing this program code?

A.

The code will output the following:

Bumblebee

B.

The code will output the following:

HumhlHee

C.

The code will output the following:

BumblHee

D.

The code will output the following:

HumblHee