Pass the CIW Master CIW Enterprise Developer 1D0-437 Questions and answers with CertsForce

Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions
Questions # 1:

In the context of Perl user-defined subroutines, which statement is the most accurate?

Options:

A.

Variables declared using the my keyword are global in scope.


B.

Variables declared using the local keyword are only available to the subroutine from which they are declared.


C.

Variables declared using the my keyword are available to the calling subroutine.


D.

Variable declared using the local keyword are available to subsequently called subroutines.


Expert Solution
Questions # 2:

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

Options:

A.

++


B.

**


C.

/


D.

?


Expert Solution
Questions # 3:

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


Expert Solution
Questions # 4:

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


Expert Solution
Questions # 5:

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?

Options:

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


Expert Solution
Questions # 6:

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


Expert Solution
Questions # 7:

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


Expert Solution
Questions # 8:

Which one of the following choices will assign the current package Library1?

Options:

A.

package::Library1;


B.

Library1::package;


C.

package(Library1);


D.

package Library1;


Expert Solution
Questions # 9:

Running your Perl scripts with a d switch will perform which task?

Options:

A.

Invoke the Perl debugger


B.

Send standard error to a file


C.

Disable breakpoints


D.

Display a stack trace


Expert Solution
Questions # 10:

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


Expert Solution
Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions