Perl MCQ Questions

Perl MCQ Questions

  • Satyam Jaiswal
  • 22nd Dec, 2021

We are introducing here the best Perl MCQ Questions, which are very popular & asked various times. This Quiz contains the best 25+ Perl MCQ with Answers, which cover the important topics of Perl. for which, you can perform best in Perl Exams, Interviews, and Placement activities.

Perl MCQ Questions

1) Which function is used by Perl for displaying the length of a string?

  • A. split
  • B.length
  • C.len
  • D.All of the above

2) Which function is used by perl for reversing a string?

  • A. rev
  • B.reverse
  • C.split
  • D.All of the above

3) Which function is used for handling substitutions in Perl?

  • A. tr and s
  • B.tr
  • C.s
  • D.None of the above

4) What is perl?

  • A. Software
  • B.Database
  • C.NoSQL
  • D.Programming Language

5) Perl is developed by

  • A. James Gosling
  • B.Larry Wall
  • C.Guido van Rossum
  • D.Larry Page

6) The _________ function is used for extracting a substring.

  • A. substr
  • B.substring
  • C.Both A and B
  • D.None of the above

7) How do you perform a forward declaration of a subroutine performed?

  • A. forward sub
  • B.forward name
  • C.forward sub name
  • D.None of the above

8) Perl is used for _________.

  • A. Web development
  • B.System Administration
  • C.Text manipulation
  • D.All of the above

9) Can we use find command for testing files with Perl?

  • A. Yes
  • B.No
  • C.May be
  • D.Can't say

10) PERL stands for __________.

  • A. Practical Extraction and Retest Language
  • B.Practical Execution and Report Language
  • C.Practical Extraction and Report Language
  • D.Practical Extraction and ReadLanguage

11) Which of the following is referred to as default variable in Perl?

  • A. $@
  • B.$_%
  • C.$*
  • D.$_

12) Which of the following is the concatenation operator in Perl?

  • A. .
  • B.#
  • C.-
  • D.+

13) Perl is written in which language?

  • A. Java
  • B.C
  • C.Python
  • D.C++

14) Which of the following is used in Perl?

  • A. elif
  • B.elseif
  • C.elsif
  • D.All of the above

15) In Perl, "%" is used with _____.

  • A. Array
  • B.String
  • C.Has Variables
  • D.All of the above

16) _____ operator is used in Perl to repeat a string.

  • A. x
  • B./
  • C.\
  • D.**

17) "+=" known as _________ operator.

  • A. Arithmetic Operator
  • B.Comparison Operator
  • C.Increment Operator
  • D.Assignment Operator

18) Which symbol is used to denote Arrays?

  • A. x
  • B.$
  • C.\
  • D.@

19) Which extension is used to save Perl program files?

  • A. .sh
  • B..gp
  • C..pl
  • D.All of the above

20) Perl is a ____ of grep, tr, sed and awk.

  • A. child
  • B.superset
  • C.parent
  • D.subset

21) Perl was first released in _________ year.

  • A. 1987
  • B.1988
  • C.1985
  • D.1982

22) ______ is comparison operator in Perl.

  • A. =
  • B.!=
  • C.+=
  • D.None of the above

23) Scalar is used to store _______

  • A. Arrays
  • B.Single Value
  • C.Float Values
  • D.Hashes

24) Which expression matches a line which begins with a?

  • A. /`a/
  • B./*a/
  • C./^a/
  • D.None of the above

25) How will you add a new key/value pair to a hash?

  • A. Using simple assignment
  • B.Using assign operator
  • C.Both A and B
  • D.None of the above

26) Which variable context only happens inside quotes, or things that work like quotes?

  • A. Using simple assignment
  • B.Void
  • C.Boolean
  • D.Interpolative

27) Which of the following function returns true if the named key exists in a Hash?

  • A. run
  • B.check
  • C.exists
  • D.None of the above

28) Which operator encloses a string with-in single quotes?

  • A. q{ }
  • B.qc{ }
  • C.qr{ }
  • D.enclose{}

29) Which function disassociate the filehandle from the corresponding file?

  • A. disclose
  • B.seek
  • C.close
  • D.cut

30) Which data types are preceded by a dollar sign ($) in Perl?

  • A. Scalar
  • B.Hash
  • C.List
  • D.All of the above

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Nov
Selenium MCQ
01st
Nov
Hibernate MCQ
01st
Nov
Hadoop MCQ
01st
Jul
MS Word MCQ
01st
Nov
MVC MCQ
01st
Nov
Fiber Optics MCQ