1D0-437 Free Demo Download
Certinside offers free demo for 1D0-437 150 Q & As with Expert Explanations). You can check out the interface, question quality and usability of our practice exams before you decide to buy it.
Download 1D0-437 Exam Pdf Demo
Download 1D0-437 Exam iEngine Demo
Exam : CIW 1D0-437
Title : CIW PERL FUNDAMENTALS
1. 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
2. Consider the following program code:
$x = 0;
$y = 5;
do
{
print ($x $y );
}
while (++$x < 5 && ++$y < 10);
print ($x $y );
What is the result of executing this program code?
A. The code will output the following:
1 6 2 7 3 8 4 8 5 10 6 11
B. The code will output the following:
0 5 1 6 2 7 3 8 4 9 4 9
C. The code will output the following:
0 5 1 6 2 7 3 8 4 9 5 10
D. The code will output the following:
0 5 1 6 2 7 3 8 4 9 5 9
Answer: D
3. .13, Niklas);
for ($i = 1; $i < $#array; $i++)
{
print($array[$i] );
}
What is the result of executing this program code?
A. The code will output the following:
Masami 10 11 12 13
B. The code will output the following:
10 Masami 10 11 12 13
C. The code will output the following:
10 Masami 11 12 13 Niklas
D. The code will output the following:
Masami 10 11 12 13 Niklas
Answer: A
6. 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
7. Assuming $a = 2, which of the following evaluates as false?
A. "False"
B. $a
C. $a < 0
D. 1
Answer: C
8. 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:
3
C. The code will output the following:
2 3
D. The code will output the following:
3 2 1
Answer: A
9. 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
10. 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
4. Consider the following code:
%chars = ("a", "100", "b", "90", "c", "80");
Which one of the following choices will reverse the key/value pairing of the code?
A. reverse(%chars);
B. %chars = reverse(%chars);
C. reverse(%chars) = %chars;
D. invert(%chars);
Answer: B
5. Consider the program code in the attached exhibit. What is the result of executing this program code?
A. The code will output the following:
20 100 Apple Grapefruit Orange
B. The code will output the following:
Apple Grapefruit Orange 20 100
C. The code will output the following:
100 20 Apple Grapefruit Orange
D. The code will output the following:
Orange Grapefruit Apple 100 20
Answer: B
6. 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
7. 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
8. Consider the following program code:
%employees = ("Lucy", "Accounting", "Armando", "Finance",
"Adrienne", "Marketing");
delete($employees{"Lucy"});
Which of the following lines of code has the same effect as the preceding code?
A. %employees = ("Adrienne", "Marketing");
B. %employees = ("Lucy", "Accounting");
C. %employees = ("Lucy", "Accounting", "Armando", "Finance");
D. %employees = ("Armando", "Finance", "Adrienne", "Marketing");
Answer: D
9. Consider the following program code:
@array = (10, Masami, 10..13, Niklas);
for ($i = 1; $i < $#array; $i++)
{
print($array[$i] );
}
What is the result of executing this program code?
A. The code will output the following:
Masami 10 11 12 13
B. The code will output the following:
10 Masami 10 11 12 13
C. The code will output the following:
10 Masami 11 12 13 Niklas
D. The code will output the following:
Masami 10 11 12 13 Niklas
Answer: A
10. 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
11. Consider the following program code:
%hash = (small => 8oz,
medium => 16oz,
large => 32oz);
@keys = sort(keys(%hash));
for ($i = 0; $i < 3; $i++) {
print($hash{$keys[$i]}n);
}
What is the result of executing this program code?
A. The code will fail at line 1 because a hash cannot contain both numeric and string data.
B. The code will execute without error but will output nothing.
C. The code will output the following:
32oz
16oz
8oz
D. The code will output the following:
large
medium
small
Answer: C
12. 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:
3
C. The code will output the following:
2 3
D. The code will output the following:
3 2 1
Answer: A
13. Consider the following statement:
$buffer = a string;
Also consider that a file named test.txt contains the following line of text:
One line of test text.
What is the output of the following lines of code?
$file = "test.txt";
open (OUT, "<$file") || (die "cannot open $file: $!");
read(OUT, $buffer, 15, 4);
print $buffer;
A. a strOne line of test
B. a stOne line of tes
C. a strOne line of tes
D. a stOne line of test
Answer: B
14. Assuming $a = 2, which of the following evaluates as false?
A. "False"
B. $a
C. $a < 0
D. 1
Answer: C
15. Consider the following lines of code:
@array1 = ("apples", "oranges", "pears", "plums");
foreach (@array1) {print "$_n"};
What is the result of these lines of code?
A. applesorangespearsplums
B. apples oranges pears plums
C. apples
D. apples
oranges
pears
plums
Answer: D
16. Consider that a file named test.txt contains this line of text:
One line of test text.
What is the output of the following lines of code?
$file = "test.txt";
open (OUT, "<$file") || (die "cannot open $file: $!");
seek(OUT, 15, 0);
read(OUT, $buffer, 5);
print $buffer . "n";
print tell(OUT);
A. t text
20
B. t tex
19
C. t text
19
D. t tex
20
Answer: D