Q.1
Which of the following code create a reference for a variable?
  • $ref = \$foo;
  • $ref = \@ARGV;
  • $ref = \%ENV;
  • $ref = \&PrintHash;
Q.2
Which of the following function opens a file in read-only mode?
  • open(DATA, "<file.txt");
  • open(DATA, ">file.txt");
  • open(DATA, "+>file.txt");
  • None of the above.
Q.3
Which of the following operator derefereces a variable?
  • --
  • -->
  • ..
  • ++
Q.4
Which of the following operator encloses a string with-in invert quotes?
  • q{ }
  • qq{ }
  • qx{ }
  • enclose{}
Q.5
Which of the following correctly describes Array data types in Perl?
  • These are simple variables. They are preceded by a dollar sign ($).
  • These are ordered lists of scalars that you access with a numeric index which starts with 0.
  • These are unordered sets of key/value pairs that you access using the keys as subscripts.
  • None of the above.
Q.6
Which of the following operator returns true if the left argument is stringwise equal to the right argument?
  • eq
  • ne
  • cmp
  • ge
Q.7
Which of the following operator checks if the value of two operands are equal or not, if values are not equal then condition becomes true?
  • ==
  • !=
  • <=>
  • >
Q.8
How will you get the size of a Hash?
  • Using scalar context
  • using sizeof operator
  • Both of the above.
  • None of the above.
Q.9
Which of the following method sorts the LIST and returns the sorted array value?
  • splice [ SUBROUTINE ] LIST
  • split [ SUBROUTINE ] LIST
  • join [ SUBROUTINE ] LIST
  • sort [ SUBROUTINE ] LIST
Q.10
Which of the following variable context only happens inside quotes, or things that work like quotes?
  • Interpolative
  • List
  • Boolean
  • Void
0 h : 0 m : 1 s