Perl Capgemini interview Questions
1. How to handle exception in Perl?
Exceptions are handled using eval expression. This works similar to try in Java programs. If we want to handle any of the exception just try to use within the 'eval' expression.
2. What is the difference between abstract class and interface?
3. How to use two dimensional arrays by using Perl?
4. How to handle inheritance using Perl?
5. How the arguments are handled in subroutine?
6. How the multiple inheritances are handled by using Perl?
7. How the user defined packages or modules can be used in Perl program?
8. How is the two array arguments can be passed and used in methods in Perl?
Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts
Perl Interview Question and answers
Perl Interview Question and answers
- What arguments do you frequently use for the Perl interpreter and what do they mean?
- What does the command ‘use strict’ do and why should you use it?
- What do the symbols $ @ and % mean when prefixing a variable?
- What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
- What are the characteristics of a project that is well suited to Perl?
- Why do you program in Perl?
- Explain the difference between my and local.
- Explain the difference between use and require.
- What’s your favorite module and why?
- What is a hash?
- Write a simple (common) regular expression to match an IP address, e-mail address, city-state-zipcode combination.
- What purpose does each of the following serve: -w, strict, -T ?
- What is the difference between for & foreach, exec & system?
- Where do you go for Perl help?
- Name an instance where you used a CPAN module.
- How do you open a file for writing?
- How would you replace a char in string and how do you store the number of replacements?
- When would you not use Perl for a project?
Subscribe to:
Posts (Atom)