1. A perl program runs in a special interpretive mode.
2. To test whether perl is in your PATH, use ____
Correct Answer is : perl -e
3. It is often more convenient to save perl program files with ____ extension.
4. ___ function is used for removing the last character from the line.
5. perl variables have no type and no initialization.
6. When a string is used for numeral computations, perl converts it into ___
Correct Answer is : number
7. If a variable is undefined, its value is ____
8. Which of the following are concatenation operators?
9. To repeat a string, perl uses ___ operator.
10. Which function is used by perl for displaying the length of a string?
Correct Answer is : length
11. ___ function returns the first occurrence of a character in a string.
Correct Answer is : index
12. For extracting a substring, ____ function is used.
Correct Answer is : substr
13. substr function is also used to alter an existing string.
14. Which function is used by perl for reversing a string?
Correct Answer is : reverse
15. Which function is used for handling substitutions in perl?
Correct Answer is : tr and s
16. Which escape character is used for identifying a word character?
17. We can use find command for testing files with perl.
18. We can specify filenames in command line using perl.
19. Which of the following is referred to as default variable?
20. ___ operator is used for selecting current line number.