- 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 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 - Which of the following variable context only happens inside quotes, or things that work like quotes?
Answer : A
Explanation
Interpolative − This context only happens inside quotes, or things that work like quotes.
Q 3 - Which of the following is correct about Hashes?
A - A hash is a set of key/value pairs.
Answer : D
Explanation
All of the above options are correct.
Q 4 - How will you delete a key/value pair to a hash?
Answer : B
Explanation
To remove an element from the hash you need to use delete function.
Q 5 - Which of the following operator checks if the value of two operands are equal or not, if yes then condition becomes true?
Answer : A
Explanation
== − Checks if the value of two operands are equal or not, if yes then condition becomes true.
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 encloses a string with-in single quotes?
Answer : A
Explanation
q{ } − Encloses a string with-in single quotes.
Q 8 - Which of the following is correct about lexical variables?
A - Lexical variables are private variables created using my operator.
Answer : A
Explanation
Lexical variables are private variables created using my operator.
Q 9 - Which of the following is true about state variables?
B - These variables are defined using the state operator and available starting from Perl 5.9.4.
Answer : C
Explanation
Both of the above options are correct.
Q 10 - Which of the following is true about dereferencing?
A - Dereferencing returns the value from a reference point to the location.
Answer : C
Explanation
Both of the above options are correct.