Question No: 6
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?
A. The code will output the following: 6 11 7 12 8 13 9 14 10 15
B. The code will output the following: 6 11 7 12 8 13 9 14 10 14
C. The code will output the following: 5 10 6 11 7 12 8 13 9 13
D. The code will output the following: 5 10 6 11 7 12 8 13 9 14
Answer: B
Question No: 7
Which of the following choices demonstrates the correct syntax to pass a reference to a subroutine?
A. @array4;
B. @array4($ref);
C. getpass(@array4);
D. getpass{@array4};
Answer: C
Question No: 8
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"};
Answer: D
Question No: 9
Consider the following program code:
$val = 5;
if ($val++ == 6)
{
print("True ");
}
else
{
print("False ");
}
if ($val++ == 6)
{
print("True ");
}
else
{
print("False ");
}
What is the output of this code?
A. False False
B. False True
C. True False
D. True True
Answer: B
Question No: 10
Which of the following accurately describes the roles of the Database Interface Module (DBI) and the Database Driver Module (DBD)?
A. DBI transmits instructions to a database; DBD directs method calls to DBI.
B. DBD transmits instructions to a database; DBI directs method calls to DBD.
C. DBI makes available database-specific code; DBD transmits method calls to DBI.
D. DBD makes available database-specific code; DBI translates method calls to DBD.
Answer: B
Question No: 11
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 No: 12
Which statement is the most accurate?
A. The unshift function removes elements from the beginning of an array.
B. The unshift function adds elements to the end of an array.
C. The shift function adds elements to the end of an array.
D. The shift function removes elements from the beginning of an array.
Answer: D
Question No: 13
Regular expressions are best used for which task?
A. To perform arithmetic functions
B. To determine whether a string matches a specific pattern
C. To perform spelling checks within text files
D. To output data to a text file
Answer: B
Question No: 14
Which statement is the most accurate?
A. The push function adds elements to the beginning of an array.
B. The push function removes the first element in an array.
C. The pop function removes the first element in an array.
D. The pop function removes the last element in an array.
Answer: D
Topic 2, C
C
Question No: 15
Which of the following choices demonstrates the proper way to close a database connection given that $dbh is the database handle?
A. Disconnect=>$dbh;
B. disconnect $dbh;
C. $dbh->disconnect;
D. Close($dbh);
Answer: C
Recommend!! Get the Practical 1D0-437 dumps in VCE and PDF From Dumpscollection, Welcome to download: http://www.dumpscollection.net/dumps/1D0-437/ (New Q&As Version)