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. 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

N

Nisha Gupta • 2.32K Points
Master

Q. Encapsulation is also known as?

  • (A) Polymorphism
  • (B) Method overloading
  • (C) Data hiding
  • (D) None of these

N

Nisha Gupta • 2.32K Points
Master

Q. Which function is used by perl for reversing a string?

  • (A) rev
  • (B) reverse
  • (C) split
  • (D) substr

N

Nisha Gupta • 2.32K Points
Master

Q. Scalar stores

  • (A) Multiple value
  • (B) Single value
  • (C) Double value
  • (D) Float value

N

Nisha Gupta • 2.32K Points
Master

Q. When you're pattern matching, you describe the pattern using 

  • (A) A string in double quotes
  • (B) A MySQL select statement
  • (C) A regular expression
  • (D) A template

N

Nisha Gupta • 2.32K Points
Master

Q. When the "require" function loads?

  • (A) Runtime
  • (B) Compile time
  • (C) Both
  • (D) None

N

Nisha Gupta • 2.32K Points
Master

Q. Which of the following statement repeats a statement or group of statements until a given condition becomes true. It tests the condition before executing the loop body?

  • (A) while
  • (B) until
  • (C) for
  • (D) none of the above

Loding content...

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.