Introduction to Perl Programming Quiz Questions and Answers

Can we load binary extension dynamically?

Answer :
  • Yes

Select data type in Perl which stores associative arrays.

Answer :
  • hash

Scalar is denoted by_______in Perl.

Answer :
  • $

How do you perform a forward declaration of a subroutine performed?

Answer :
  • forward sub name

What will be printed by the code below? my @a = (0, 1, 2); my $b = @a; print $b;

Answer :
  • 3

Which of the following operator divides left-hand operand by right-hand operand and returns remainder?

Answer :
  • %

Arrays are denoted by _______in Perl.

Answer :
  • @

The Perl DBI is ______________.

Answer :
  • database interface

Which of the following is the comment symbol in Perl?

Answer :
  • #

The language which features rich text processing capabilities and flexibility is...

Answer :
  • Perl