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

1D0-437 Questions and Answers

Question # 6

Which of the following methods of calling a subroutine is not valid?

A.

$namex = getname();

B.

getname() = @array1;

C.

$yearstogo = $Retireage Currentage();

D.

$yearstogo = $Retireage Currentage($name);

Full Access
Question # 7

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

A.

while {0} (print "OK");

B.

while ($c != 99) {print "OK"}

C.

while {$b eq "OK"} (print "$a++");

D.

while ($_) Do {print "OK");

Full Access
Question # 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");

Full Access
Question # 9

Consider the following program code:

%_Nifty = (one, two, three, four);

@NiftyKeys = sort(keys(%_Nifty));

foreach(@NiftyKeys)

{

print ($_Nifty{$_} . );

}

What is the result of executing this program code?

A.

The code will output the following:

one three

B.

The code will output the following:

four two

C.

The code will output the following:

two four

D.

The code will output the following:

four one three two

Full Access
Question # 10

Which one of the following choices lists the three loop-control commands?

A.

exit, last, loop

B.

next,first,lasr

C.

loop, exit, next

D.

redo, next, last

Full Access
Question # 11

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

A.

+ - ** //

B.

* ** / //

C.

** / ++ %

D.

*/ % -- **

Full Access
Question # 12

Consider the following lines of code:

sub mySub {

($arg, @args) = @_;

foreach $val (@args) {

$returnVal .= "$arg, $val\n";

}

$returnVal . "" . @args;

}

print &mySub(1, "a value", "another value", "a parameter", "another parameter");

What is the output of these lines of code?

A.

1, a value 1, another value 1, a parameter 1, another parameter 4

B.

1, a value 1, another value 1, a parameter 1, another parameter

a valueanother valuea parameteranother parameter

C.

1, a value, another value, a parameter, another parameter

a value another value a parameter another parameter

D.

1, a value, another value, a parameter, another parameter 4

Full Access
Question # 13

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

A.

"False"

B.

$a

C.

$a < 0

D.

1

Full Access
Question # 14

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?

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

Full Access
Question # 15

Consider the following assignments:

$x = 9

$y = 7

$z = 5

Given these assignments, which one of the following expressions evaluates as true?

A.

($x - $y) != ($y - $z);

B.

($z * 2) <= $x;

C.

($y + $z + $x) = $y*3;

D.

($x 2) > $y;

Full Access
Question # 16

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

Full Access
Question # 17

Consider the following program code:

package Dog;

$string = Walk the dog.;

if($string eq Walk the dog.)

{

package Cat;

$string = Pet the cat.;

print($string\n);

}

print ($string\n);

What is the result of executing this program code?

A.

The code will output the following:

Pet the cat.

B.

The code will output the following:

Walk the dog.

C.

The code will output the following:

Pet the cat.

Walk the dog.

D.

The code will output the following:

Walk the dog.

Pet the cat.

Full Access
Question # 18

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

A.

The code will output the following:

3 + 5 + 2 + 3 = 13

B.

The code will output the following:

= 3 + 5 + 2 + 3 13

C.

The code will output the following:

= 13 3 + 5 + 2 + 3

D.

The code will fail at line 3 because add is a reserved word.

Full Access
Question # 19

Which statement will open the /etc/passwd file for reading only?

A.

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

B.

open(PASSFILE, "/etc/passwd");

C.

open(PASSFILE "+

D.

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

Full Access
Question # 20

Which one of the following choices is a unary operator that can apply to only a single variable?

A.

++

B.

**

C.

/

D.

?

Full Access
Question # 21

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?

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

Full Access
Question # 22

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

Full Access