Home / Programming Questions / Perl MCQs / Page 3

Perl MCQs with answers Page - 3

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. Destructor's in Perl are ___.

(A) Used for cleanup of reference of objects
(B) Called at the start of the program
(C) Not a program
(D) All of these

N

Nisha Gupta • 2.32K Points
Master

Q. What is method overwriting in Perl?

(A) Filling up method with extra written data
(B) Methods that provide extra features
(C) A Feature that allows rewriting of methods in child class
(D) All of these

N

Nisha Gupta • 2.32K Points
Master

Q. Method overwriting can be used to implement run time polymorphism?

(A) true
(B) false
(C) ---
(D) ---

N

Nisha Gupta • 2.32K Points
Master

Q. Which of these are valid type of inheritance in Perl?

(A) Multiple inheritance
(B) Multilevel inheritance
(C) Hierarchical inheritance
(D) All of these

N

Nisha Gupta • 2.32K Points
Master

Q. What is multiple inheritance in Perl?

(A) When more than two different inheritance takes place in a single program.
(B) When a class inherits more than two classes
(C) When two classes inherit properties from a single class
(D) None of these

N

Nisha Gupta • 2.32K Points
Master

Q. What is multilevel inheritance in Perl?

(A) A subclass of a class is inherited by another class
(B) A class inherits properties from multiple classes
(C) Multiple classes inherit properties from a class
(D) None of these

N

Nisha Gupta • 2.32K Points
Master

Q. What is polymorphism in Perl?

(A) Creating multiple constants with the same name
(B) Defining multiple methods under the same name
(C) Creating multiple variables with the same name
(D) All of these

N

Nisha Gupta • 2.32K Points
Master

Q. What is encapsulation in Perl?

(A) Creating Arrays
(B) Wrapping up data and related methods to a single unit
(C) Creating separate structures storing values
(D) All of these

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.