Easter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

CIW PERL FUNDAMENTALS Question and Answers

CIW PERL FUNDAMENTALS

Last Update May 15, 2024
Total Questions : 149

We are offering FREE 1D0-437 CIW exam questions. All you do is to just go and sign up. Give your details, prepare 1D0-437 free exam questions and then go for complete pool of CIW PERL FUNDAMENTALS test questions that will help you more.

1D0-437 pdf

1D0-437 PDF

$35  $99.99
1D0-437 Engine

1D0-437 Testing Engine

$42  $119.99
1D0-437 PDF + Engine

1D0-437 PDF + Testing Engine

$56  $159.99
Questions 1

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.

Discussion 0
Questions 2

Consider the following program code:

$Animal = Dogs bark;

package Cat;

$Animal = Cats purr;

{

package Fish;

$Animal = Fish swim;

} p

ackage main;

print $Animal;

What is the result of executing this program code?

Options:

A.  

The code will fail at line 4.

B.  

The code will output the following:

Dogs bark

C.  

The code will output the following:

Cats purr

D.  

The code will output the following:

Fish swim

Discussion 0
Questions 3

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:

Bumblebee

B.  

The code will output the following:

HumhlHee

C.  

The code will output the following:

BumblHee

D.  

The code will output the following:

HumblHee

Discussion 0
Questions 4

Consider the following program code:

@stack = (10, 10..25);

push(@stack, yellow);

shift(@stack);

push(@stack, white);

print shift(@stack);

What is the result of executing this program code?

Options:

A.  

The code will fail at line 3 because shift requires two arguments.

B.  

The code will output the following:

11

C.  

The code will output the following:

10

D.  

The code will output the following:

white

Discussion 0
Questions 5

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

Discussion 0
Questions 6

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

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

Discussion 0
Questions 8

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;

Discussion 0
Questions 9

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)

Discussion 0
Questions 10

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

Options:

A.  

++

B.  

**

C.  

/

D.  

?

Discussion 0
Questions 11

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

Discussion 0
Questions 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?

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

Discussion 0
Questions 13

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?

Options:

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.

Discussion 0
Questions 14

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?

Options:

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

Discussion 0
Questions 15

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

Discussion 0
Questions 16

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:

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.

Discussion 0
Questions 17

Consider the following program code:

if ("Apple" gt "Pear")

{

print("True ");

}

else

{

print("False ");

}

if ("Banana" le "Banana")

{

print("True ");

}

else

{

print("False ");

}

What is the result of executing this program code?

Options:

A.  

False False

B.  

False True

C.  

True False

D.  

True True

Discussion 0
Questions 18

Consider the following program code:

$var = 10;

package Alpha;

$var = 20;

{

package Beta;

$var = 30;

}

package Gamma;

$var = 40;

{

print $var;

}

What is the output of this code?

Options:

A.  

10

B.  

20

C.  

30

D.  

40

Discussion 0
Questions 19

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?

Options:

A.  

%employees = ("Adrienne", "Marketing");

B.  

%employees = ("Lucy", "Accounting");

C.  

%employees = ("Lucy", "Accounting", "Armando", "Finance");

D.  

%employees = ("Armando", "Finance", "Adrienne", "Marketing");

Discussion 0
Questions 20

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

Discussion 0
Questions 21

Consider the following program code:

@array = ("ALPHA", "beta", "GaMmA");

@array = sort(@array);

print("@array");

What is the output of this code?

Options:

A.  

beta GaMmA ALPHA

B.  

ALPHA GaMmA beta

C.  

ALPHA beta GaMmA

D.  

beta ALPHA GaMmA

Discussion 0
Questions 22

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

Options:

A.  

$namex = getname();

B.  

getname() = @array1;

C.  

$yearstogo = $Retireage Currentage();

D.  

$yearstogo = $Retireage Currentage($name);

Discussion 0