Unix Interview Questions - 27 | Snaprecruit.com
Unix Interview Questions - 27 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Unix interview questions part 27
Unix interview questions part 27
Back
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.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. To test whether perl is in your PATH, use ____
A. perl -e
B. perl -i
C. perl -el
D. perl -ed
Show Correct Answer
Correct Answer is :
perl -e
3. It is often more convenient to save perl program files with ____ extension.
A. .gp
B. .sh
C. .awk
D. .pl
Show Correct Answer
Correct Answer is :
.pl
4. ___ function is used for removing the last character from the line.
A. cut
B. chop
C. erase
D. split
Show Correct Answer
Correct Answer is :
chop
5. perl variables have no type and no initialization.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. When a string is used for numeral computations, perl converts it into ___
A. character
B. floating point number
C. number
D. boolean value
Show Correct Answer
Correct Answer is :
number
7. If a variable is undefined, its value is ____
A. 0
B. 1
C.
D. garbage
Show Correct Answer
Correct Answer is :
0
8. Which of the following are concatenation operators?
A. /
B. .
C. _
D. \\
Show Correct Answer
Correct Answer is :
.
9. To repeat a string, perl uses ___ operator.
A. /
B. .
C. x
D. \\
Show Correct Answer
Correct Answer is :
x
10. Which function is used by perl for displaying the length of a string?
A. string
B. len
C. split
D. length
Show Correct Answer
Correct Answer is :
length
11. ___ function returns the first occurrence of a character in a string.
A. string
B. index
C. split
D. length
Show Correct Answer
Correct Answer is :
index
12. For extracting a substring, ____ function is used.
A. string
B. index
C. substr
D. length
Show Correct Answer
Correct Answer is :
substr
13. substr function is also used to alter an existing string.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. Which function is used by perl for reversing a string?
A. rev
B. reverse
C. split
D. substr
Show Correct Answer
Correct Answer is :
reverse
15. Which function is used for handling substitutions in perl?
A. tr
B. s
C. str
D. tr and s
Show Correct Answer
Correct Answer is :
tr and s
16. Which escape character is used for identifying a word character?
A. \s
B. \d
C. \w
D. \n
Show Correct Answer
Correct Answer is :
\w
17. We can use find command for testing files with perl.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
18. We can specify filenames in command line using perl.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
19. Which of the following is referred to as default variable?
A. 0
B. 1
C. $!
D. $_
Show Correct Answer
Correct Answer is :
$_
20. ___ operator is used for selecting current line number.
A. 0
B. 1
C. $.
D. $_
Show Correct Answer
Correct Answer is :
$.
Similar Interview Questions
Search for latest jobs
Find Jobs