Home / Programming Questions / Perl MCQs / Page 14

Perl MCQs with answers Page - 14

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. Which of these is a data type in Perl?

(A) Scalars
(B) Array
(C) Hashes
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which of these is a type of the scalar in Perl?

(A) Array
(B) String
(C) Hash
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. The % sign in Perl is used to ___.

(A) Declare a hash
(B) Accessing a hash value
(C) Initialize a loop
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. The elements of the array are ___.

(A) Number
(B) String
(C) Characters
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Array in Perl created using?

(A) %
(B) @
(C) $
(D) None of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which is a valid way to extract the size of an array in Perl?

(A) _len(@array_name)
(B) @array_name.length()
(C) $size = scalar @array_name
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. What is a hash in Perl?

(A) Set of key-value pair
(B) Collection storing scalar
(C) Collection sorting array
(D) None of these

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.