
- Perl Basics
- 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 Advanced
- 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 - Useful Resources
- Perl - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 can handle encrypted Web data, including e-commerce transactions.
Answer : D
Explanation
All of the above options are correct.
Q 2 - Which of the following data types are preceded by a percent sign (%) in Perl?
Answer : C
Explanation
Hashes are preceded by a percent sign (%).
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 add a new key/value pair to a hash?
Answer : A
Explanation
Adding a new key/value pair can be done with one line of code using simple assignment operator.
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 less than the right argument?
Answer : A
Explanation
lt − Returns true if the left argument is stringwise less than the right argument.
Q 7 - Which of the following operator encloses a string with-in double quotes?
Answer : B
Explanation
qq{ } − Encloses a string with-in double quotes.
Answer : A
Explanation
By default, all variables in Perl are global variables, which means they can be accessed from anywhere in the program.
Q 9 - Which of the following is true about lexical scoping?
Answer : D
Explanation
All of the above options are correct.
Q 10 - Which of the following code create a reference for a array?
Answer : B
Explanation
You can create a reference for any array by prefixing it with a backslash as follows - $ref = \@ARGV;