- 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
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 doesn't care what the return value is?
Answer : D
Explanation
Void − This context not only doesn't care what the return value is, it doesn't even want a return value.
Q 3 - Which of the following method joins the separate strings of LIST into a single string with fields separated by the value of EXPR, and returns the string?
Answer : C
Explanation
join EXPR, LIST − This function joins the separate strings of LIST into a single string with fields separated by the value of EXPR, and returns the string.
Q 4 - Which of the following statement causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?
Answer : A
Explanation
next statement − Causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
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.
Q 8 - How will you get the count of parameters passed to a perl subroutine?
Answer : B
Explanation
using scalar(@_), we can get the total number of arguments passed.
Q 9 - Which of the following function opens a file in read-only mode?
Answer : A
Explanation
open(DATA, "<file.txt"); − opens a file in read-only mode.
Q 10 - Which of the following function renames existing file?
Answer : A
Explanation
Function rename takes two arguments and it just rename existing file.
To Continue Learning Please Login
Login with Google