Home
|
Contact
Perl Test
Q1. Choose the true statement from the drop down:
Select Answer
Perl can only be run on a Microsoft platform
Perl can only be run on a Linux platform
Perl can be run on any platform with a PERL interpreter
Q2. Choose correct output of code:
$num=4;
print("25%$num;");
6
5
0
1
Q3. Choose correct symbol for Modulas operator:
#
&
%
@
Q4. Choose correct output of code:
my $a=4; $b=5;
print("$a*$b/4");
5
1
0
4*5/4
Q5. Check the true statement
Perl was created by Bill Gates
Perl was created by Dennis Richie
Perl was created by Larry Wall
Perl was created by Fred Flinstone
Q6. Check all true statements
Variables declared with
my
inside a function are known only inside that function
Variables declared with
my
are global variables
Variable names can use underscore in their name
Variable names can have spaces in them
Q7. Check all true statements
The forward slash is used to escape a character in PERL
PERL is an intrepreted language
PERL stands for Practical Extraction and Reporting Language
PERL stands for Practical Expression and Reporting Language
Q8. Check all true statements
Perl has similar features to AWK
CPAN contains a huge supository of Perl modules
Perl produces byte-code when compiled
Q9. Choose the correct syntax of shabang line on a typical UNIX setup
Select Answer
#!/user/bin/perl
#!/usr/bin/perl
!#/usr/bin/perl
Q10. Choose the line that would cause this code not to run
print("Hello World");
print("Hello World ");
print("Hello World);
print("Hello World" " ");