Choose a topic to test your knowledge and improve your Perl skills
For looping in a list, ____ is used.
perl also supports use of for loop in the following manner. for($i=0;$i<3;$i++){ }
For splitting a line or expression into fields, __ is used.
___ function is used for joining lists.
perl is ____ of grep, tr, sed and awk.
The following will display : perl -e βprint βUNIXβ x 10 . β β ;β
Perl scripts are text files.
The shebang line is _______
When you're pattern matching, you describe the pattern using:
Perl is:
The printf format "%6.2f" displays a number β¦
The statement open (FH,"abc.txt");
When you create a variable, you may assume it starts off containing:
Which brackets do you use to change the order of precedence of operations?
Which of the following tests if the string held in $qn includes the word "perl"?
Which of these is NOT available for Perl:
Perl was first released in:
What will be printed by the code below? 58% on 4261 times asked my $val = 'x'; print ref($val);
What is a file handle used for?
The "%" operator returns:
What is Perl?
. The $_ variable
The value of the expression $yards += 10
$x = @y[2 .. 4] assigns$x the third, fourth and fifth elements of the y array concatenated together.
Which of the following commands will turn a scalar ($str)into an array of characters?
<ARGV>
In Perl, a/n ________ is a special character or a sequence that will define the number of times the previous character or sequence appears.
In Perl, the following will result in which of the following, if the prize is currently "5 dollars" print 'You won $prize';
In Perl, which of the following are file handles?
In Perl, which switch is used for printing out warnings about typographical errors in your script?
In Perl, "stat" returns a thirteen element array with which of the following values?
CGI is a programming language.
In Perl, scalar variables always begin with a ________ sign.
What will be printed by the code below? my $val = {}; print ref($val);
. What will be printed by the code below? my @a = (0, 1, 2); my $b = @a; print $b;
What output will be generated by this statement: print("Hello world This is Perl ");?
What is the result of this script: $a = "This is Perl"; $b="This is Perl "; chomp($a); chomp($b);?
What will be the value in the variable $a after these two statements: $a = "Hello"; $a = "world";?
I want to write an appointment manager program for Microsoft Windows users. It must have a GUI, it must be very fast, and it depends on special GUI features found on only Microsoft Windows. What is the best language for the job?
There is another popular scripting language called Python. Like Perl, it reads and runs scripts in one step instead of compiling them ahead of time. What would I need on my computer to use Python?
Who designed and developed Perl?
Which are the permitted file extensions of perl?
PONIE is an acronym for?
Which symbol is owned by the Perl Foundation?
Which among the following statements are true with respect to Perl? S1: Perl is procedural in nature S2: Perl do automatic data-typing S3: All variables are marked with leading sigils
Which keyword can be used instead of print to have the carriage return added automatically? (v5.10 or higher)
Which option can be used to use perl on the command line?
How are single-line commented in Perl?
How are multi-line commented in Perl?
Which statement enables Plain Old Documentation?