JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 28
Unix interview questions part 28
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ___ is known as range operator.
A. . .
B. 1
C. $.
D. $_
Show Correct Answer
Correct Answer is :
. .
2. The command @x=(1. .10) will assign first ten integer values to the array ‘a’.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
3. The ___ prefix to an array name signifies the last index of the array.
A. 0
B. $#
C. #$
D. $_
Show Correct Answer
Correct Answer is :
$#
4. For deleting the elements from the left of the array ___ function is used.
A. pop
B. push
C. queue
D. shift
Show Correct Answer
Correct Answer is :
shift
5. For deleting the elements from the right of the array ___ function is used.
A. pop
B. push
C. queue
D. shift
Show Correct Answer
Correct Answer is :
pop
6. To add elements to the left side of the array ____ function is used.
A. pop
B. push
C. queue
D. unshift
Show Correct Answer
Correct Answer is :
unshift
7. To add elements to the right side of the array ____ function is used.
A. pop
B. push
C. queue
D. unshift
Show Correct Answer
Correct Answer is :
push
8. Which function can combine the functionalities of push, pop, unshift and shift?
A. splice
B. add
C. delete
D. split
Show Correct Answer
Correct Answer is :
splice
9. For looping in a list, ____ is used.
A. for
B. fordo
C. foreach
D. while
Show Correct Answer
Correct Answer is :
foreach
10. perl also supports use of for loop in the following manner. for($i=0;$i<3;$i++){ }
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
11. For splitting a line or expression into fields, __ is used.
A. foreach
B. for
C. split
D. join
Show Correct Answer
Correct Answer is :
split
12. ___ function is used for joining lists.
A. foreach
B. for
C. split
D. join
Show Correct Answer
Correct Answer is :
join
13. perl is ____ of grep, tr, sed and awk.
A. subset
B. superset
C. child
D. parent
Show Correct Answer
Correct Answer is :
superset
14. The following will display : perl -e ‘print “UNIX” x 10 . “\n” ;’
A. UNIX
B. UNIX 10 times
C. error message
D. \n
Show Correct Answer
Correct Answer is :
UNIX 10 times
15. A process is an instance of _______ program.
A. waiting
B. executing
C. terminated
D. halted
Show Correct Answer
Correct Answer is :
executing
16. A process is said to be ____ when it starts its execution.
A. born
B. die
C. waiting
D. terminated
Show Correct Answer
Correct Answer is :
born
17. When the process has completed its execution it is called ______
A. born
B. terminated
C. waiting
D. exit
Show Correct Answer
Correct Answer is :
exit
18. Programs and process are synonymous.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
19. Which data structure is used to store information about a process?
A. process control block (pcb)
B. array
C. queue
D. program control block
Show Correct Answer
Correct Answer is :
process control block (pcb)
20. Some attributes of every process are maintained by the kernel in memory in a separate structure called the ______
A. pcb
B. task control block
C. process table
D. task table
Show Correct Answer
Correct Answer is :
process table
Similar Interview Questions
Search for latest jobs
Find Jobs