Month End Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Achieve Success in the CIW 1D0-437 Exam: A Detailed CIW PERL FUNDAMENTALS Guide

Questions 1

Which one of the following statements uses correct syntax and expressions?

Options:
A.

do (print "Hello $a") until ($a = 10);

B.

do {$a++} until {$a == $b}\;

C.

do {$in = $in++} while ($in < 100);

D.

do ($a++) until ($b = $a);

CIW 1D0-437 Premium Access
Questions 2

Which statement will print the capital attribute of the $kansas object?

Options:
A.

print ("capital"=>$kansas);

B.

print {$kansas}=>(capital);

C.

print (capital)<={$kansas};

D.

print $kansas->{"capital"};

Questions 3

Which of the following is a valid subroutine name?

Options:
A.

_funct7

B.

get-pass

C.

#sub1

D.

@passwd

Questions 4

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?

Options:
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

Questions 5

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?

Options:
A.

False False

B.

False True

C.

True False

D.

True True

Questions 6

Consider the program code in the attached exhibit. What is the result of executing this program code?

1D0-437 Question 6
Options:
A.

The code will output the following:

50

B.

The code will output the following:

0

C.

The code will output the following:

5

D.

The code will output the following:

multiply(5, 10)

Questions 7

Which of the following choices demonstrates the correct syntax for creating a hash?

Options:
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");

Questions 8

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?

Options:
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

Questions 9

Which line of code represents the correct syntax to establish a reference to a database handle?

Options:
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");

Questions 10

Assuming $a = 2, which of the following evaluates as false?

Options:
A.

"False"

B.

$a

C.

$a < 0

D.

1