Explain what is the function of Return Value?
Answer:
The Return Value function returns a reference to an object blessed into CLASSNAME.
ViewExplain what are prefix dereferencer and list them out?
Answer:
Using a particular prefix when you dereference a variable, they are called prefix dereferencer.
Explain what is the function that is used to identify how many characters are there in a string?
Answer:
To tell how many characters are there in a string, length () function is used.
ViewExplain what is lvalue?
Answer:
An lvalue is a scalar value which can be used to store the result of any expression. Usually, it appears at the left-hand side of the expression and represent a data space in memory.
ViewExplain what is Perl one liner?
Answer:
One liner is one command line programs and can be executed from the command line immediately.
For example,
# run program under the debugger
perl-d my_file
ViewWhat is the closure in PERL?
Answer:
The closure is a block of code that is used to capture the environment where it is defined. It particularly captures any lexical variables that block consists of and uses in an outer space.
ViewExplain what is STDIN, STDOUT and STDERR?
Answer:
Mention what are the two ways to get private values inside a subroutine or block?
Answer:
There are two ways through which private values can be obtained inside a subroutine or block
Explain what is Polymorphism in Perl?
Answer:
In Perl, Polymorphism means the methods defined in the base class will always over-ride the methods defined in the parent class.
ViewMention what is CPAN?
Answer:
CPAN means Comprehensive Perl Archive Network, a large collection of Perl software and documentation.
ViewExplain what is Chop & Chomp function does?
Answer:
Explain USE and REQUIREMENT statements?
Answer:
Example: Require Module,
Var=module::method(); //method called with the module reference
Example: Use Module
Var=method(); //method can be called directly
ViewMention how many ways you can express string in Perl?
Answer:
You can express string in Perl in many ways
For instance “this is quizbucket.”
What does -> symbol indicates in Perl?
Answer:
In Perl, the arrow – > symbol is used to create or access a particular object of a class.
ViewExplain what is the scalar data and scalar variables in Perl?
Answer:
Scalar in Perl means a single entity like a number or string. So, the Java concept of int, float, double and string equals to perls scalar and the numbers and strings are exchangeable. While scalar variable is used to store scalar data. It uses $ sign and followed by one or more alphanumeric characters or underscore. It is a case sensitive.
ViewWhat is the syntax used in Perl grep function?
Answer:
The syntax used in Perl is
a) grep BlOCK LIST
b) grep ( EXPR, LIST )
In Perl, what is grep function used for?
Answer:
To filter the list and return only those elements that match certain criteria Perl grep function is used.
ViewMention the difference between die and exit in Perl?
Answer:
Die will print a message to the std err before ending the program while Exit will simply end up the program.
ViewExplain which feature of PERL provides code reusability?
Answer:
To provide code re-usability in PERL inheritance feature is used. In Inheritance, the child class can use the methods and property of the parent class.
ViewList the operator used in Perl?
Answer:
Operators used in Perl are
© 2017 QuizBucket.org