Q. What is the facility that allows nesting one select statement into another?

  • (A) nesting
  • (B) binding
  • (C) subquerying
  • (D) encapsulating
πŸ’¬ Discuss
βœ… Correct Answer: (C) subquerying

Q. The Perl DBI is _____________

  • (A) database inheritance
  • (B) database integrity
  • (C) database interface
  • (D) database isolation
πŸ’¬ Discuss
βœ… Correct Answer: (C) database interface

Q. Select comparison operator from the options.

  • (A) *=
  • (B) &&
  • (C) !=
  • (D) =
πŸ’¬ Discuss
βœ… Correct Answer: (C) !=

Q. What will be printed by the code below? my $val = {}; print ref($val);

  • (A) empty value
  • (B) Array
  • (C) Hash
  • (D) Scalar
πŸ’¬ Discuss
βœ… Correct Answer: (C) Hash

Q. It is often more convenient to save perl program files with ____ extension

  • (A) .gp
  • (B) .sh
  • (C) .awk
  • (D) .pl
πŸ’¬ Discuss
βœ… Correct Answer: (D) .pl

Q. Which of the following is used in perl?

  • (A) else if
  • (B) elseif
  • (C) elsif
  • (D) elif
πŸ’¬ Discuss
βœ… Correct Answer: (C) elsif

Q. Language which features rich text processing capabilities and flexibility is

  • (A) Perl
  • (B) C
  • (C) Visual Basic
  • (D) Ada
πŸ’¬ Discuss
βœ… Correct Answer: (A) Perl

Q. When a string is used for numeral computations, perl converts it into

  • (A) character
  • (B) floating point number
  • (C) number
  • (D) boolean value
πŸ’¬ Discuss
βœ… Correct Answer: (C) number

Q. Advantages of encapsulation are

  • (A) Data hiding
  • (B) Reusability
  • (C) Ease of testing
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of these
Explanation: Advantages of Encapsulation are -

Data Hiding
Increasing Flexibility
Reusability
Testing code is easy

Q. Which statement is used to enable strict mode in Perl?

  • (A) Strict mode;
  • (B) use strict;
  • (C) use strict mode;
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) use strict;
Explanation: The syntax to enable strict mode in Perl is,

Use strict