QUESTION 61
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.
Answer: C
QUESTION 62
Consider the following assignments:
$x = 9
$y = 7
$z = 5
Given these assignments, which of the following expressions evaluates as true?
A. ($x – $y) != ($y – $z);
B. ($z * 2) <= $x;
C. ($y + $z + $x) == $y*3;
D. ($x – 2) > $y;
Answer: C
QUESTION 63
Consider the following program code:
@array – (“ALPHA”, “beta”, “GaMmA”);
sort (@array);
print (“@array”);
What is the output of this code?
A. betaGaMmA ALPHA
B. ALPHAGaMmA beta
C. ALPHA betaGaMmA
D. beta ALPHAGaMmA
Answer: C
QUESTION 64
Which of the following describes the functionality of the DBI tables method?
A. Thetables method returns a list of all system tables in a database.
B. Thetables method returns a list of all user-defined tables in a database.
C. Thetables method returns a list of all tables in a database.
D. Thetables method returns a list of all related tables in a database.
Answer: D
QUESTION 65
Karl wants to define a character class that includes any alphanumeric word characters. Which 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$]/;
Answer: A
QUESTION 66
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
Answer: C
QUESTION 67
Which one of the following choices lists the three loop-control commands?
A. exit, last, loop
B. next,first,lasr
C. loop, exit, next
D. redo, next, last
Answer: D
QUESTION 68
Consider the following program code:
1.$x = 100;
2.$y = “-25″;
3.$sum = $x + $y;
4.
5.print $sum;
What is the result of executing this program code?
A. The code will output the following:
100-25
B. The code will output the following:
75
C. The code will fail at line 3 because $y contains string data.
D. The code will output the following:
125
Answer: B
QUESTION 69
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
Answer: B
QUESTION 70
Consider the following lines of code:
1.$playerStr = “Today’s player is Bob Petit.”;
2.if($playerStr =~ /[Ruth|Gehrig|DiMaggio]/) {
3. $game = “Baseball”;
4.}else{
5. $game = “Basketball”;
6.}
7.print $game;
What is the output of these lines of code?
A. No output is generated due to an error in line 2.
B. Basketball
C. Baseball
D. No output is generated due to an error in line 3.
Answer: C
If you want to pass CIW 1D0-437 exam successfully, donot missing to read latest lead2pass CIW 1D0-437 practice exams.
If you can master all lead2pass questions you will able to pass 100% guaranteed.