CIW 1D0-437 - CIW PERL FUNDAMENTALS Exam

Question #6 (Topic: Topic 0)
Consider the following program code:
$x = 10;
LOOP: while ($x < 15)
{
print ($x );
if ($x >= 14 && $x <= 20)
{
$x += 2;
redo LOOP;
}
else
{
$x++;
}
What is the result of executing this program code?
A. The code will output the following: 11 12 13 14 15 16 17 18 19 B. The code will output the following: 10 11 12 13 14 16 18 20 22 C. The code will output the following: 10 11 12 13 14 16 18 20 D. The code will output the following: 10 11 12 13 14 15 16 17 18 19 20
Answer: B
Question #7 (Topic: Topic 0)
Assuming $a = 2, which of the following evaluates as false?
A. "False" B. $a C. $a &lt; 0 D. 1
Answer: C
Question #8 (Topic: Topic 0)
Consider the following program code:
$y = 1;
$x = 2;
$z = 3;
do
{
print ($y );
} while ($y eq 2);
do
{
print ($x );
} until ($x eq 2);
print ($z );
What is the result of executing this program code?
A. The code will output the following: 1 2 3 B. The code will output the following: C. The code will output the following: 2 3 D. The code will output the following: 3 2 1
Answer: A
Question #9 (Topic: Topic 0)
Running your Perl scripts with a d switch will perform which task?
A. Invoke the Perl debugger B. Send standard error to a file C. Disable breakpoints D. Display a stack trace
Answer: A
Question #10 (Topic: Topic 0)
Which line of code represents the correct syntax to establish a reference to a database
handle?
A. $dbh = DBI::connect("dbi:mysql:myPhoneBook"); B. $dbh = DBD:->connect("dbi::mysql::myPhoneBook"); C. $dbh = DBD::connect("mysql:dbi:myPhoneBook"); D. $dbh = DBI->connect("dbi:mysql:myPhoneBook");
Answer: D
Download Exam
Page: 2 / 30
Total 149 questions