New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

1D0-437 CIW PERL FUNDAMENTALS Questions and Answers

Questions 4

Which one of the following choices will replace all occurrences of the word perl with the word Perl?

Options:

A.

s/Perl/perl/I;

B.

s/"perl"/"Perl"/g;

C.

s/"perl"/"Perl"/;

D.

s/perl/Perl/g;

Buy Now
Questions 5

Which of the following correctly creates a SQL statement that will insert the values of the $name and $age variables into a database? The statement is assigned to the $sqlStmt variable. Assume a CHAR data type for $name and an INT data type for $age.

Options:

A.

$sqlStmt = q{INSERT INTO aTable (NAME, AGE) VALUES ($name, $age)};

B.

$sqlStmt = q{INSERT INTO aTable (NAME, AGE) VALUES ($name\, $age)};

C.

$sqlStmt = qq{INSERT INTO aTable (NAME, AGE) VALUES ($name, $age)};

D.

$sqlStmt = qq{INSERT INTO aTable (NAME, AGE) VALUES (\$name\, $age)};

Buy Now
Questions 6

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

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)

Buy Now
Questions 7

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?

Options:

A.

reverse(%chars);

B.

%chars = reverse(%chars);

C.

reverse(%chars) = %chars;

D.

invert(%chars);

Buy Now
Questions 8

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

Buy Now
Questions 9

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?

Options:

A.

Jan Feb May Apr Mar

B.

Jan Feb Mar Apr May

C.

Mar Apr May Jan Feb

D.

May Jan Feb Mar Apr

Buy Now
Questions 10

Which one of the following choices lists only valid expression operators?

Options:

A.

+ - ** //

B.

* ** / //

C.

** / ++ %

D.

*/ % -- **

Buy Now
Questions 11

Consider the following program code:

%color = (sun => yellow, apple => red);

reverse(%color);

@colorKeys = sort(keys(%color));

foreach(@colorKeys)

{

print($color{$_} . );

}

What is the result of executing this program code?

Options:

A.

The code will output the following:

apple sun

B.

The code will output the following:

sun apple

C.

The code will output the following:

red yellow

D.

The code will output the following:

apple red sun yellow

Buy Now
Questions 12

Which one of the following statements opens a file for appending?

Options:

A.

open(PASSWD, ">/etc/passwd");

B.

open(PASSWD ">/etc/passwd");

C.

open(PASSWD, ">>/etc/passwd");

D.

open(PASSWD "+>/etc/passwd");

Buy Now
Questions 13

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?

Options:

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

Buy Now
Questions 14

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

Buy Now
Questions 15

Consider the following code:

%hashA = ("alpha", "beta", "gamma", "alpha");

%hashA = reverse(%hashA);

print $hashA{"alpha"};

What is the result of executing this code?

Options:

A.

The code outputs the following:

alpha

B.

The code outputs the following:

beta

C.

The code outputs the following:

gamma

D.

The code fails at line 3.

Buy Now
Questions 16

Consider the following program code:

$i = 15;

LOOP: for(; $i < 25; $i++)

{

if ($i % 2)

{

next LOOP;

}

print($i );

}

What is the result of executing this program code?

Options:

A.

The code will output the following:

15 2 4 6 8 10 12 14 16 18 20 22 24

B.

The code will output the following:

15 17 19 21 23 25

C.

The code will fail at line 2 because $i is not initialized.

D.

The code will output the following:

16 18 20 22 24

Buy Now
Questions 17

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?

Options:

A.

reverse(%chars);

B.

%chars = reverse(%chars);

C.

reverse(%chars) = %chars;

D.

invert(%chars);

Buy Now
Questions 18

In Perl, modules are used for which task?

Options:

A.

To organize packages

B.

To provide code reusability

C.

To separate code in a file

D.

To create separate namespaces

Buy Now
Questions 19

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?

Options:

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

Buy Now
Questions 20

In Perl, packages are used for which task?

Options:

A.

To label a program

B.

To encrypt a program

C.

To create new keywords

D.

To define a namespace

Buy Now
Questions 21

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?

Options:

A.

Jan Feb May Apr Mar

B.

Jan Feb Mar Apr May

C.

Mar Apr May Jan Feb

D.

May Jan Feb Mar Apr

Buy Now
Questions 22

Which one of the following choices uses the correct syntax for a valid array assignment?

Options:

A.

@cities = Akron, Memphis, Ogden, Phoenix;

B.

@cities =~ ("Akron, Memphis");

C.

@cities =~ (Akron, Memphis, Ogden, Phoenix);

D.

@cities = ("Akron");

Buy Now
Exam Code: 1D0-437
Exam Name: CIW PERL FUNDAMENTALS
Last Update: Dec 22, 2024
Questions: 149

PDF + Testing Engine

$134.99

Testing Engine

$99.99

PDF (Q&A)

$84.99