Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. A perl program runs in a special interpretive mode.
Correct Answer is : TRUE
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.
Correct Answer is : .pl
4. ___ function is used for removing the last character from the line.
Correct Answer is : chop
5. perl variables have no type and no initialization.
Correct Answer is : TRUE
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 ____
Correct Answer is : 0
8. Which of the following are concatenation operators?
Correct Answer is : .
9. To repeat a string, perl uses ___ operator.
Correct Answer is : x
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.
Correct Answer is : TRUE
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?
Correct Answer is : \w
17. We can use find command for testing files with perl.
Correct Answer is : TRUE
18. We can specify filenames in command line using perl.
Correct Answer is : TRUE
19. Which of the following is referred to as default variable?
Correct Answer is : $_
20. ___ operator is used for selecting current line number.
Correct Answer is : $.
Similar Interview Questions
Search for latest jobs
Get $5 added to your wallet for registering an account. Refer others and get $1 for each successful referral. Earn while you search for jobs and redeem in gift cards!