CIW Perl Specialist 1D0-437 Exam Questions

Page: 1 / 14
Total 169 questions
Question 1

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



Answer : C


Question 2

Consider the following program code:

$var = 10;

package Alpha;

$var = 20;

{

package Beta;

$var = 30;

}

package Gamma;

$var = 40;

{

print $var;

}

What is the output of this code?



Answer : D


Question 3

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?



Answer : B


Question 4

Which statement is the most accurate?



Answer : D


Question 5

Consider the following assignments

$x = 9

$y = 7

$z = 5

Given these assignments, which of the following expressions evaluates as true?



Answer : C


Question 6

Consider the following statement.

$buffer = a string;

Also consider that a file named test.txt contains the following 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: $!");

read(OUT, $buffer, 15, 4);

print $buffer;



Answer : B


Question 7

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?



Answer : B


Page:    1 / 14   
Total 169 questions