Home / Programming MCQs / Perl MCQs / Question

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
Explanation by: Team MCQ Buddy
The valid way to extract the size of an array in Perl is:

    $size = scalar @array_name 

You must be Logged in to update hint/solution

Discusssion

Login to discuss.