Home / CSE MCQs / Perl MCQs ::

CSE MCQs :: Perl MCQs

  1. Which of the following is used in perl?
  2. A.
    else if
    B.
    elseif
    C.
    elsif
    D.
    elif

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Language which features rich text processing capabilities and flexibility is
  4. A.
    Perl
    B.
    C
    C.
    Visual Basic
    D.
    Ada

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. When a string is used for numeral computations, perl converts it into
  6. A.
    character
    B.
    floating point number
    C.
    number
    D.
    boolean value

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Scalar is denoted by_______in Perl.
  8. A.
    #
    B.
    $
    C.
    %
    D.
    ^

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. In Perl, the words function and subroutines are used interchangeably.
  10. A.
    True
    B.
    False
    C.
    All the above
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. How do you perform a forward declaration of a subroutine performed?
  12. A.
    forward sub name
    B.
    sub name
    C.
    forward name
    D.
    sub name {}

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. What will display the list of warning messages regarding the code?
  14. A.
    Strict pragma
    B.
    The -w Command-line argument
    C.
    Using the built-in debugger
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of these is NOT available for Perl
  16. A.
    Perl, legally, for free
    B.
    Individual and site licenses
    C.
    Full documentation of the language which you can print out yourself
    D.
    A Caribbean cruise in 2006 on which you can meet some of the Perl gurus

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The "+= is which type of operator?
  18. A.
    comparison operators
    B.
    Arithmetic operators
    C.
    Increment/ decrements operators
    D.
    Assignment operators

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The getdir command
  20. A.
    Reads a single file name from an open directory handle
    B.
    Reads the rest of the file names from an open directory handle
    C.
    Only works after anopendir command
    D.
    Is not a perl command

    View Answer

    Workspace

    Discuss Discuss in Forum