Alien head

PERL Quiz

Description: PERL Quiz 2
Number of Questions: 8
Created by:
Tags: perl
Attempted 0/8 Correct 0 Score 0

In Perl, a/n ________ is a special character or a sequence that will define the number of times the previous character or sequence appears.

  1. character class

  2. metacharacter

  3. assertion

  4. quantifier


Correct Option: D

In Perl, the following will result in which of the following, if the prize is currently "5 dollars" print 'You won $prize';

  1. You won $5.00

  2. You won 5 dollars

  3. You won $prize

  4. You won $5


Correct Option: C

In Perl, the words function and subroutines are used interchangeably.

  1. True

  2. False


Correct Option: A

In Perl, which of the following are file handles?

  1. stdquit

  2. stdend

  3. stdin

  4. stdout

  5. C&D


Correct Option: E

In Perl, which switch is used for printing out warnings about typographical errors in your script?

  1. -P

  2. -W

  3. -p

  4. -w


Correct Option: D

In Perl, "stat" returns a thirteen element array with which of the following values?

  1. Perl version ID

  2. Web server ID

  3. Last access

  4. Inode number

  5. C&E


Correct Option: E

CGI is a programming language.

  1. True

  2. False


Correct Option: B

In Perl, scalar variables always begin with a ________ sign.

  1. #

  2. @

  3. %

  4. $


Correct Option: D
+ View questions