Home / Programming Questions / Perl MCQs / Page 5

Perl MCQs with answers Page - 5

Dear candidates you will find MCQ questions of Perl here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

N

Nisha Gupta • 2.32K Points
Master

Q. Select comparison operator from the options.

(A) *=
(B) &&
(C) !=
(D) =

N

Nisha Gupta • 2.32K Points
Master

Q. What will be printed by the code below? my $val = {}; print ref($val);

(A) empty value
(B) Array
(C) Hash
(D) Scalar

N

Nisha Gupta • 2.32K Points
Master

Q. It is often more convenient to save perl program files with ____ extension

(A) .gp
(B) .sh
(C) .awk
(D) .pl

N

Nisha Gupta • 2.32K Points
Master

Q. Which of the following is used in perl?

(A) else if
(B) elseif
(C) elsif
(D) elif

N

Nisha Gupta • 2.32K Points
Master

Q. Language which features rich text processing capabilities and flexibility is 

(A) Perl
(B) C
(C) Visual Basic
(D) Ada

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. When a string is used for numeral computations, perl converts it into

(A) character
(B) floating point number
(C) number
(D) boolean value

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Advantages of encapsulation are

(A) Data hiding
(B) Reusability
(C) Ease of testing
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which statement is used to enable strict mode in Perl?

(A) Strict mode;
(B) use strict;
(C) use strict mode;
(D) None of these

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.