adplus-dvertising
frame-decoration

Question

Which of the following is referred to as default variable?

a.

$0

b.

$1

c.

$!

d.

$_

Posted under UNIX

Answer: (d).$_

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is referred to as default variable?

Similar Questions

Discover Related MCQs

Q. ___ operator is used for selecting current line number.

Q. ___ is known as range operator.

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

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

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

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

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

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

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

Q. Perl also supports use of for loop in the following manner.

for($i=0;$i<3;$i++){ }

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

Q. ___ function is used for joining lists.

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

Q. The following will display :

perl -e ‘print “UNIX” x 10 . “\n” ;’

Q. Filter’s are a category of commands that take the advantage of shell redirection feature.

Q. Which command is used for preparing a file for printing?

Q. pr command adds ____ lines of margin at the top and bottom.

Q. Which option is used with pr command for printing multi-columnar output?

Q. Which option is used with pr command to suppress the header and footers?

Q. Which option is used with the tail command for extracting bytes instead of lines?