Home / Programming Questions / Perl MCQs / Page 7

Perl MCQs with answers Page - 7

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. 'x' operator on string used to?

(A) Add x character to the string
(B) Repeat the given string multiple times
(C) Add two strings
(D) None of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Is auto increment/ decrement operator valid in Perl?

(A) Yes
(B) No
(C) ---
(D) ---

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. What are 'listary operators' in Perl?

(A) Operator on collections
(B) Operators on integers
(C) Operators on the list of operators
(D) All of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. What is the correct operator precedence for the following operators?

Code:
 && , &, = , ->
(A) & , && , = , ->
(B) -> , & , && , =
(C) = , & , && , ->
(D) = , -> , && , &

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Do we need to specify the data type of a variable in Perl?

(A) Yes
(B) No
(C) ---
(D) ---

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which of these is a valid way to start a variable?

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

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which of these is not a basic data type in Perl?

(A) Integer
(B) Arrays
(C) Scalars
(D) None of these

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Scalar variables in Perl are ___.

(A) Array values
(B) A Single unit of data
(C) String Values
(D) All of these

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.