Which of the following is a valid subroutine name?
Which of the following is a valid subroutine name?
What is the output of these lines of code?
Consider the following lines of code:
sub mySub {
$_ = @_[1];
$a = shift;
$b = shift;
return $a * $b * $_;
}
mySub(1,2,3);
What is the output of these lines of code?
Which statement writes data to the filehandle OUTPUT?
Which statement writes data to the filehandle OUTPUT?
Which one of the following choices lists valid assertions that represent places within a string?
Which one of the following choices lists valid assertions that represent places within a string?
Which one of the following statements opens a file for appending?
Which one of the following statements opens a file for appending?
Which keyword indicates an object reference rather than a variable reference?
Which keyword indicates an object reference rather than a variable reference?
Which Perl debugger commands can be used to step through a script?
Which Perl debugger commands can be used to step through a script?
What is the output of these lines of code?
Consider the following lines of code:
sub mySub {(
$arg,@args) = @_;
foreach $val (@args) {
SreturnVal .= “$arg, $val\n”;
}
SreturnVal.””. @args;
}
print SmySub(1 “a value”, “another value”, “a parameter”, “another parameter”);
What is the output of these lines of code?
What is the value of $city after the code is executed?
Consider the following code:
@cities = qw( Pittsburgh Atlanta Nashville Boston );
$city = join (“:”, @cities);
What is the value of $city after the code is executed?
Which one of the following choices lists only valid expression operators?
Which one of the following choices lists only valid expression operators?