Q. Perl Programming language is ___?

  • (A) General purpose programming language
  • (B) Dynamic programming language
  • (C) High-level interpreted programming language
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of these
Explanation: Perl is a general-purpose, high-level interpreted, and dynamic programming language.

Q. The creator of Perl programming language is ___.

  • (A) James Gosling
  • (B) Brendan Eich
  • (C) Larry Wall
  • (D) Bjarne Stroustrup
πŸ’¬ Discuss
βœ… Correct Answer: (C) Larry Wall
Explanation: American Programmer Linguist Larry Wall, in December 1987 created Perl. The version Perl 1.0 was released for computers running on the UNIX operating system.

Q. The year in which Perl was launched?

  • (A) 1986
  • (B) 1987
  • (C) 1988
  • (D) 1878
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1987
Explanation: In December 1987, American Programmer Linguist Larry Wall created Perl. The version Perl 1.0 was released for computers running on the UNIX operating system.

Q. What are the benefits of the Perl programming language?

  • (A) Easy to learn
  • (B) Text Processing
  • (C) Easy to be embedded on web pages
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of these
Explanation: Some benefits of Perl are:

Easy to learn
Easy of text processing
Easy to embed on web pages

Q. What is the file extension for the Perl program?

  • (A) .pl
  • (B) .perl
  • (C) .prl
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) .pl
Explanation: The extension .pl is used to create a Perl file.

Q. What is the syntax to create multiline comments in Perl?

  • (A) =start =end
  • (B) #begin #cut
  • (C) =begin =cut
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) =begin =cut
Explanation: The syntax for creating a multiline comment in Perl is:

=begin
=cut

Q. What are the disadvantages of Perl over C/C++?

  • (A) No main() [driver] function
  • (B) Support closures
  • (C) It is interpreted language
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of these
Explanation: The Perl programming language is better than the C/C++ programming language. So common advantages include:

No main () function that acts as entry point to the program.
It is interpreted language leading to faster compilation.

Q. Which of the following is not a concept of OOP?

  • (A) Encapsulation
  • (B) Class
  • (C) Abstraction
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of these
Explanation: The concepts of OOPs are:

Class
Object
Method
Polymorphism
Inheritance
Encapsulation
Abstraction

Q. Method in Perl is?

  • (A) Time savers
  • (B) User to reuse code w/o retyping the code
  • (C) Collections of statement that perform specific tasks
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of these
Explanation: Method/subroutine in Perl is a block of code (collection of statements) that performs a specific task in peril.

It can save programmer time and user code as one function can be called multiple times.

Q. Is the following statement correct for Perl?
"Data Abstraction displays only the essential details to the user"

  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true
Explanation: Data Abstraction displays only the essential details to the user. It is the process of binding together data and related functions in a single unit.