Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

CIW PERL FUNDAMENTALS

Last Update 4 hours ago Total Questions : 149

The CIW PERL FUNDAMENTALS content is now fully updated, with all current exam questions added 4 hours ago. Deciding to include 1D0-437 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our 1D0-437 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these 1D0-437 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any CIW PERL FUNDAMENTALS practice test comfortably within the allotted time.

Question # 21

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

Question # 22

Consider the following program code:

print(1 );

BEGIN { print(2 ); }

END { print(3 ); }

BEGIN { print(4 ); }

END

{

package MyPackage;

print(5 );

}

What is the result of executing this program code?

A.

The code will output the following:

1 2 3 4 5

B.

The code will output the following:

2 4 1 5 3

C.

The code will output the following:

2 1 3 4 5

D.

The code will output the following:

2 4 1 3

Question # 23

Consider the following program code:

$x = 150;

$y = "250";

if (($x + 100) == $y) { print("1 "); }

if ("250" == $y) { print("2 "); }

if ("250" eq $y) { print("3 "); }

if ($x lt $y) { print("4 "); }

if ($x ge $y) { print("5 "); }

What is the result of executing this program code?

A.

The code will output the following:

1 2 3 4

B.

The code will output the following:

1 3 4

C.

The code will output the following:

1 3 5

D.

The code will output the following:

1 2 3 4 5

Question # 24

Consider the following program code:

$val = 5;

if ($val++ == 6)

{

print("True ");

}

else

{

print("False ");

}

if ($val++ == 6)

{

print("True ");

}

else

{

print("False ");

}

What is the output of this code?

A.

False False

B.

False True

C.

True False

D.

True True

Question # 25

Which one of the following while statements uses correct syntax and expressions?

A.

while {0} (print "OK");

B.

while ($c != 99) {print "OK"}

C.

while {$b eq "OK"} (print "$a++");

D.

while ($_) Do {print "OK");

Question # 26

Which statement writes data to the filehandle OUTPUT?

A.

print "Here's my data.\n" > OUTPUT

B.

write OUTPUT "Here's my data.\n";

C.

write OUTPUT ">Here's my data.\n";

D.

print OUTPUT "Here's my data.\n";

Question # 27

Which one of the following statements uses correct syntax and expressions?

A.

do (print "Hello $a") until ($a = 10);

B.

do {$a++} until {$a == $b}\;

C.

do {$in = $in++} while ($in < 100);

D.

do ($a++) until ($b = $a);

Question # 28

Which statement is the most accurate?

A.

The unshift function removes elements from the beginning of an array.

B.

The unshift function adds elements to the end of an array.

C.

The shift function adds elements to the end of an array.

D.

The shift function removes elements from the beginning of an array.

Question # 29

Consider the following program code:

@stack = (10, 10..25);

push(@stack, yellow);

shift(@stack);

push(@stack, white);

print shift(@stack);

What is the result of executing this program code?

A.

The code will fail at line 3 because shift requires two arguments.

B.

The code will output the following:

11

C.

The code will output the following:

10

D.

The code will output the following:

white

Question # 30

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

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.

Go to page: