Home / Programming Questions / Perl MCQs / Page 8

Perl MCQs with answers Page - 8

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

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Global scope variables can be used

(A) Inside any function or block
(B) Inside a specific function
(C) Inside a specific block
(D) None of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. 'Our' keyword is used to ___.

(A) Create an alias to package
(B) Create a new variable
(C) Create a virtual variable
(D) None of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. What is a module in Perl?

(A) Collection of related subroutines and variables
(B) Array of functions
(C) Collection of values of same type
(D) None of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which statement in Perl is used to import a module?

(A) import module_name
(B) include module_name
(C) use module_name
(D) None of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. What is a number in Perl?

(A) Mathematical object for counting, measuring, and performing mathematical operations
(B) math module
(C) Non string type
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Scalar is denoted by_______in Perl.

(A) #
(B) %
(C) $
(D) ^

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. In Perl, the words function and subroutines are used interchangeably

(A) True
(B) False
(C) All the above
(D) None

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. How do you perform a forward declaration of a subroutine performed?

(A) forward sub name
(B) sub name
(C) forward name
(D) sub name {

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.