Cgi Perl interview questions

142 questions. Tap “Show answer” to check yourself.

Advertisement
  1. What are the advantages of c over Perl?

  2. Mention how many ways you can express string in Perl?

  3. what is Perl one liner?

  4. Which has the highest precedence, List or Terms? Explain?

  5. what is the function that is used to identify how many characters are there in a string?

  6. List the prefix dereferencer in Perl.

  7. Which guidelines by Perl modules must be followed?

  8. Where do we require ‘chomp’ and what does it mean?

  9. How can you replace the characters from a string and save the number of replacements?

  10. Does Perl have objects? If yes, then does it force you to use objects? If no, then why?

  11. Difference between the variables in which chomp function work ?

  12. Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

  13. Advertisement
  14. What is the usage of -i and 0s options?

  15. What is the use of -w, -t and strict in Perl?

  16. Which feature of Perl provides code reusability ? Give any example of that feature.

  17. For a situation in programming, how can you determine that Perl is a suitable?

  18. Explain what is STDIN, STDOUT and STDERR?

  19. Why Perl aliases are considered to be faster than references?

  20. What does -> symbol indicates in Perl?

  21. How can you use Perl warnings and what is the importance to use them?

  22. How can you call a subroutine and identify a subroutine?

  23. In Perl, what is grep function used for?

  24. In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?

  25. what are the two ways to get private values inside a subroutine or block?

  26. Advertisement
  27. Write syntax to use grep function?

  28. Write syntax to add two arrays together in perl?

  29. What does the’$_’ symbol mean?

  30. what is the function of Return Value?

  31. what is CPAN?

  32. Which functions in Perl allows you to include a module file or a module and what is the difference between them?

Advertisement