
- Perl - Home
- Perl - Introduction
- Perl - Environment
- Perl - Syntax Overview
- Perl - Data Types
- Perl - Variables
- Perl - Scalars
- Perl - Arrays
- Perl - Hashes
- Perl - IF...ELSE
- Perl - Loops
- Perl - Operators
- Perl - Date & Time
- Perl - Subroutines
- Perl - References
- Perl - Formats
- Perl - File I/O
- Perl - Directories
- Perl - Error Handling
- Perl - Special Variables
- Perl - Coding Standard
- Perl - Regular Expressions
- Perl - Sending Email
- Perl - Socket Programming
- Perl - Object Oriented
- Perl - Database Access
- Perl - CGI Programming
- Perl - Packages & Modules
- Perl - Process Management
- Perl - Embedded Documentation
- Perl - Functions References
- Perl Useful Resources
- Perl - Questions and Answers
- Perl - Quick Guide
- Perl - Cheatsheet
- Perl - Useful Resources
- Perl - Discussion
Perl Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Perl. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Q 1 - Which of the following is correct about Perl?
A - Perl stands for Practical Extraction and Report Language.
C - Perl supports both procedural and object-oriented programming.
Answer : D
Explanation
All of the above options are correct.
Q 2 - In which of the following variable context, assignment to an array or a hash evaluates the right-hand side in a list context?
Answer : B
Explanation
List − Assignment to an array or a hash evaluates the right-hand side in a list context.
Q 3 - Which of the following method pops off and returns the last value of the array?
Answer : B
Explanation
pop @ARRAY - Pops off and returns the last value of the array.
Q 4 - How will you get the size of a Hash?
Answer : A
Explanation
You can get the size − that is, the number of elements from a hash by using the scalar context on either keys or values.
Q 5 - Which of the following operator performs exponential (power) calculation on operators?
Answer : D
Explanation
** − Exponent − Performs exponential (power) calculation on operators.
Q 6 - Which of the following operator returns true if the left argument is stringwise greater than the right argument?
Answer : B
Explanation
gt − Returns true if the left argument is stringwise greater than the right argument.
Q 7 - Which of the following operator returns a list of values counting (up by ones) from the left value to the right value?
Answer : C
Explanation
.. − The range operator .. returns a list of values counting (up by ones) from the left value to the right value.
Q 8 - Which of the following function returns epoch time?
Answer : C
Explanation
time − returns epoch time, i.e. the numbers of seconds that have elapsed since a given date, in Unix is January 1, 1970.
Q 9 - Which of the following is true about Subroutine Call Context?
Answer : C
Explanation
Both of the above options are correct.
Q 10 - Which of the following function returns a single character from the specified FILEHANDLE, or STDIN if none is specified?
Answer : B
Explanation
The getc function returns a single character from the specified FILEHANDLE, or STDIN if none is specified.