Home / CSE MCQs / Perl MCQs ::

CSE MCQs :: Perl MCQs

  1. Select the option which allows the user to scroll through the entire program line by line in Perl.
  2. A.
    Using the strict pragma
    B.
    Using the built-in debugger
    C.
    Using the string pragma
    D.
    Using the built-in error

  3. What will be the value in the variable $a after these two statements: $a = "Happy"; $a = "Sunday";?
  4. A.
    "Happy Sunday"
    B.
    "HappySunday"
    C.
    "Happy"
    D.
    "Sunday"

  5. Which function is used by perl for displaying the length of a string?
  6. A.
    string
    B.
    len
    C.
    split
    D.
    length

  7. When you create a variable, you may assume it starts off containing
  8. A.
    1
    B.
    You may not make any assumption
    C.
    The boolean value "false"
    D.
    A null string (or 0 arithmetically)

  9. Command line arguments in Perl are stored in
  10. A.
    Scalar
    B.
    Resource
    C.
    Array
    D.
    Hash