Unix interview questions part 28

Unix interview questions part 28

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. ___ is known as range operator.

Correct Answer is : . .

2. The command @x=(1. .10) will assign first ten integer values to the array ‘a’.

Correct Answer is : TRUE

3. The ___ prefix to an array name signifies the last index of the array.

Correct Answer is : $#

4. For deleting the elements from the left of the array ___ function is used.

Correct Answer is : shift

5. For deleting the elements from the right of the array ___ function is used.

Correct Answer is : pop

6. To add elements to the left side of the array ____ function is used.

Correct Answer is : unshift

7. To add elements to the right side of the array ____ function is used.

Correct Answer is : push

8. Which function can combine the functionalities of push, pop, unshift and shift?

Correct Answer is : splice

9. For looping in a list, ____ is used.

Correct Answer is : foreach

10. perl also supports use of for loop in the following manner. for($i=0;$i<3;$i++){ }

Correct Answer is : TRUE

11. For splitting a line or expression into fields, __ is used.

Correct Answer is : split

12. ___ function is used for joining lists.

Correct Answer is : join

13. perl is ____ of grep, tr, sed and awk.

Correct Answer is : superset

14. The following will display : perl -e ‘print “UNIX” x 10 . “\n” ;’

Correct Answer is : UNIX 10 times

15. A process is an instance of _______ program.

Correct Answer is : executing

16. A process is said to be ____ when it starts its execution.

Correct Answer is : born

17. When the process has completed its execution it is called ______

Correct Answer is : exit

18. Programs and process are synonymous.

Correct Answer is : FALSE

19. Which data structure is used to store information about a process?

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 ______

Correct Answer is : process table

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon