Home / CSE MCQs / Perl MCQs ::

CSE MCQs :: Perl MCQs

  1. Which function is used by perl for reversing a string?
  2. A.
    rev
    B.
    reverse
    C.
    split
    D.
    substr

  3. Scalar stores
  4. A.
    Multiple value
    B.
    Single value
    C.
    Double value
    D.
    Float value

  5. When you're pattern matching, you describe the pattern using
  6. A.
    A string in double quotes
    B.
    A MySQL select statement
    C.
    A regular expression
    D.
    A template

  7. When the "require function loads?
  8. A.
    Runtime
    B.
    Compile time
    C.
    Both
    D.
    None

  9. 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?
  10. A.
    while
    B.
    until
    C.
    for
    D.
    None of the above

  11. What is the facility that allows nesting one select statement into another?
  12. A.
    nesting
    B.
    binding
    C.
    subquerying
    D.
    encapsulating

  13. The Perl DBI is ______________
  14. A.
    database inheritance
    B.
    database integrity
    C.
    database interface
    D.
    database isolation

  15. Select comparison operator from the options.
  16. A.
    *=
    B.
    &&
    C.
    !=
    D.
    =

  17. What will be printed by the code below? my $val = {}; print ref($val);
  18. A.
    empty value
    B.
    Array
    C.
    Hash
    D.
    Scalar

  19. It is often more convenient to save perl program files with ____ extension
  20. A.
    .gp
    B.
    .sh
    C.
    .awk
    D.
    .pl