how many elements?
Consider the following statement
@array1 = (9, “A”, 0..9, “PERL”);
Given this statement, @array1 consists of how many elements?
What is the result of executing this program code?
Consider the following program code:
%_Nifty = (one, two, three, four);
@NiftyKeys = sort(keys(%_Nifty));
foreach(@NiftyKeys)
{
print ($_Nifty{$_} . );
}
What is the result of executing this program code?
What is the result of executing this program code?
Consider the following program code
@list – (10..15);
foreach(@list)
{
print(“$_ “);
}
What is the result of executing this program code?
which task?
In Perl, modules are used for which task?
What is the result of executing this program code?
Consider the following program code
$Animal – “Dogs bark”;
package Cat;
$Animal = “Cats purr”;
{
package Fish;
$Animal – “Fish swim”;
}
package main;
print $Animal;
What is the result of executing this program code?
Which statement will print the capital attribute of the $kansas object?
Which statement will print the capital attribute of the $kansas object?
What is the result of executing this program code?
Which statement will open the /etc/passwd file for reading only?
Which statement will open the /etc/passwd file for reading only?
What is the value of $modresult in the expression?
Consider the following expression $modresult – 33 % 11;
What is the value of $modresult in the expression?
What is the result of executing this program code?
Consider the following program code
@array – (1..5);
print(shift(@array) . ” “);
print(shift(@array) . ” “);
print(pop(@array) . ” “);
print(pop(@array( . ” “);
push(@array, “SIX”);
print(shift(@array) . ” “);
print(shift(@array) . ” “);
What is the result of executing this program code?