Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exc65

Which one of the following choices lists valid assertions that represent places within a string?

A.

\b, \B, \x, \X

B.

\A, \B, \Z, \G

C.

\z, \Z, \g, \y

D.

\Y, \X, \Z, \A

Which of the following choices demonstrates the correct syntax to pass a reference to a subroutine?

A.

\@array4;

B.

@array4($ref);

C.

getpass(\@array4);

D.

getpass{@array4};

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?

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

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

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

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

Consider the following program code:

@arrayA = (10, 20, 30);

@arrayB = @arrayA;

$arrayB[1] = 40;

print $arrayA[1];

What is the output of this code?

A.

10

B.

20

C.

30

D.

40

Consider the following program code:

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

@array = sort(@array);

print("@array");

What is the output of this code?

A.

beta GaMmA ALPHA

B.

ALPHA GaMmA beta

C.

ALPHA beta GaMmA

D.

beta ALPHA GaMmA

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

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

Consider the following program code:

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

sort(@array);

print("@array");

What is the output of this code?

A.

beta GaMmA ALPHA

B.

ALPHA GaMmA beta

C.

ALPHA beta GaMmA

D.

beta ALPHA GaMmA

Consider the following program code:

@array = ("one", "two");

push(@array, "three");

shift(@array);

unshift(@array, "four");

pop(@array);

print($array[0]);

What is the output of this code?

A.

one

B.

two

C.

three

D.

four