Q2. Consider the following assignments:
$x = 9
$y = 7
$z = 5
Given these assignments, which one 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
Q3. 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
Answer: A
Q4. Which one of the following choices will replace all occurrences of the word perl with the word Perl?
A. s/Perl/perl/I;
B. s/"perl"/"Perl"/g;
C. s/"perl"/"Perl"/;
D. s/perl/Perl/g;
Answer: D
Q5. 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.
Answer: C
Q6. 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
Q7. Which one of the following choices is a unary operator that can apply to only a single variable?
A. ++
B. **
C. /
D. <?>?
Answer: A
Q8. Which of the following describes the functionality of the DBI tables method?
A. The tables method returns a list of all system tables in a database.
B. The tables method returns a list of all user-defined tables in a database.
C. The tables method returns a list of all tables in a database.
D. The tables method returns a list of all related tables in a database.
Answer: C
Q9. Which one of the following choices lists only valid expression operators?
A. + - ** // B. * ** / // C. ** / ++ % D. */ % -- **
Answer: C
Q10. Consider the following code:
$_ = "New York";
@array2 = split(//);
What is the value of $array2[0] after the code is executed?
A. ""
B. "N e w"
C. "NewYork"
D. "N"
Answer: D
Q11. Which of the following choices demonstrates the correct syntax for creating a hash?
A. %passwds = ("denise", "robert", "yolanda") => ("pass1", "pass2", "pass3");
B. %passwds() = ("denise", "pass1", "robert", "pass2", "yolanda", "pass3");
C. %passwds = (denise=> "pass1", robert=> "pass2", yolanda=> "pass3");
D. %passwds{3} = ("denise", "robert", "yolanda") => ("pass1", "pass2", "pass3");
Answer: C
Recommend!! Get the Certified 1D0-437 dumps in VCE and PDF From Surepassexam, Welcome to download: https://www.surepassexam.com/1D0-437-exam-dumps.html (New Q&As Version)