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 # 11

Consider the following program code:

%employees = ("Lucy", "Accounting", "Armando", "Finance",

"Adrienne", "Marketing");

delete($employees{"Lucy"});

Which of the following lines of code has the same effect as the preceding code?

A.

%employees = ("Adrienne", "Marketing");

B.

%employees = ("Lucy", "Accounting");

C.

%employees = ("Lucy", "Accounting", "Armando", "Finance");

D.

%employees = ("Armando", "Finance", "Adrienne", "Marketing");

Question # 12

Consider the following program code:

$i = 15;

LOOP: for(; $i < 25; $i++)

{

if ($i % 2)

{

next LOOP;

}

print($i );

}

What is the result of executing this program code?

A.

The code will output the following:

15 2 4 6 8 10 12 14 16 18 20 22 24

B.

The code will output the following:

15 17 19 21 23 25

C.

The code will fail at line 2 because $i is not initialized.

D.

The code will output the following:

16 18 20 22 24

Question # 13

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?

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

Question # 14

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 # 15

Consider the following program code:

1.$x = 100;

2.$y = 15;

3.$result = $x % $y;

4.

5.print $result;

What is the result of executing this program code?

A.

The code will fail at line 3 because % is a unary operator.

B.

The code will output the following:

10E+16

C.

The code will output the following:

10

D.

The code will fail at line 5 because $result is not enclosed by parentheses.

Question # 16

Consider the following code:

%chars = ("a", "100", "b", "90", "c", "80");

Which one of the following choices will reverse the key/value pairing of the code?

A.

reverse(%chars);

B.

%chars = reverse(%chars);

C.

reverse(%chars) = %chars;

D.

invert(%chars);

Question # 17

Which statement will print the capital attribute of the $kansas object?

A.

print ("capital"=>$kansas);

B.

print {$kansas}=>(capital);

C.

print (capital)<={$kansas};

D.

print $kansas->{"capital"};

Question # 18

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

Question # 19

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?

A.

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

B.

/^w/;

C.

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

D.

/[^0-Z$]/;

Question # 20

Consider that a file named test.txt contains this line of text:

One line of test text.

What is the output of the following lines of code?

$file = "test.txt";

open (OUT, "<$file") || (die "cannot open $file: $!");

seek(OUT, 15, 0);

read(OUT, $buffer, 5);

print $buffer . "\n";

print tell(OUT);

A.

t text

20

B.

t tex

19

C.

t text

19

D.

t tex

20

Go to page: