CIW PERL FUNDAMENTALS 1D0-437 Question # 5 Topic 1 Discussion

CIW PERL FUNDAMENTALS 1D0-437 Question # 5 Topic 1 Discussion

1D0-437 Exam Topic 1 Question 5 Discussion:
Question #: 5
Topic #: 1

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


Get Premium 1D0-437 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.