Which of the following tasks is the least effective in reducing errors in Perl scripts?
Which of the following tasks is the least effective in reducing errors in Perl scripts?
Which one of the following while statements uses correct syntax and expressions?
Which one of the following while statements uses correct syntax and expressions?
What is the result of executing this program code?
Consider the following program code:
$x = 5;
$y = 10;
while(++$x < 10 && ++$y < 15)
{
print ($x $y );
}
print ($x $y );
What is the result of executing this program code?
Which of the following methods of calling a subroutine is not valid?
Which of the following methods of calling a subroutine is not valid?
What is the result of executing this program code?
What is the result of executing this program code?
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?
which task?
In Perl, packages are used for which task?
What is the output of this code?
Consider the following program code:
if (“cool” =~ m/[cool]{4}/)
{
print(“True “);
}
else
{
print(“False “);
}
if (“cool” =~ m/[col]{4}/)
{
print(“True “);
}
else
{
print(“False “);
}
What is the output of this code?