QUESTION 31
Consider the following lines of code:
sub mySub {
$_ = @_[1];
$a = shift;
$b = shift;
return $a * $b * $_;
}
mySub(1,2,3);
What is the output of these lines of code?
A. No output results from this code.
B. 6
C. 2
D. 4
Answer: A
QUESTION 32
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”;
Answer: D
QUESTION 33
Which one of the following choices lists valid assertions that represent places within a string?
A. \b,\B,\x,\X
B. \A,\B,\Z,\G
C. \z,\Z,\g,\y
D. \y,\X,\Z,\A
Answer: B
QUESTION 34
Which one of the following statements opens a file for appending?
A. open(PASSWD, “>/etc/passwd”);
B. open(PASSWD “>/etc/passwd”);
C. open(PASSWD, “>>/etc/passwd”);
D. open(PASSWD “+>/etc/passwd”);
Answer: C
QUESTION 35
Which keyword indicates an object reference rather than a variable reference?
A. return
B. bless
C. package
D. object
Answer: B
QUESTION 36
Which Perl debugger commands can be used to step through a script?
A. b and d
B. t and c
C. s and n
D. X and V
Answer: C
QUESTION 37
Consider the following lines of code:
sub mySub {(
$arg,@args) = @_;
foreach $val (@args) {
SreturnVal .= “$arg, $val\n”;
}
SreturnVal.”". @args;
}
print SmySub(1 “a value”, “another value”, “a parameter”, “another parameter”);
What is the output of these lines of code?
A. 1, a value 1, another value 1, a parameter 1, another parameter 4
B. 1, a value 1, another value 1, a parameter 1, another parameter a value another value a parameter
another parameter
C. 1, a value, another value, a parameter, another parameter a value another value a parameter another parameter
D. 1, a value, another value, a parameter, another parameter 4
Answer: A
QUESTION 38
Consider the following code:
@cities = qw( Pittsburgh Atlanta Nashville Boston ); $city = join (“:”, @cities);
What is the value of $city after the code is executed?
A. PittsburghAtlantaNashvilleBoston
B. Pittsburgh, Atlanta, Nashville, Boston
C. Pittsburgh:Atlanta:Nashville:Boston
D. Pittsburgh Atlanta Nashville Boston
Answer: C
QUESTION 39
Which one of the following choices lists only valid expression operators?
A. + – ** //
B. * ** / //
C. ** / ++ %
D. */ % — **
Answer: C
QUESTION 40
Consider the program code in the attached exhibit. What is the result of executing this program code?
Image may be NSFW.
Clik here to view.
A. The code will output the following: 50
B. The code will output the following: 0
C. The code will output the following: 5
D. The code will output the following:multiply(5,10)
Answer: B
If you want to pass CIW 1D0-437 exam successfully, donot missing to read latest lead2pass CIW 1D0-437 dumps.
If you can master all lead2pass questions you will able to pass 100% guaranteed.