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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum