adplus-dvertising
frame-decoration

Question

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

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

a.

True

b.

False

c.

May be

d.

Can't say

Posted under UNIX

Answer: (a).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

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?

Q. paste command uses space as the default field delimiter.

Q. _____ option is used with paste command if we want to specify our own delimiter.

Q. Which option is used with paste command for joining lines?

Q. ____ command is used for sorting a file on specified fields.

Q. The name of the input and output files cannot be same while using sort command.

Q. Which command is used for locating repeated and non-repeated lines?

Q. uniq command requires a sorted file as input.

Q. Which option is used with uniq command for selecting non-repeated lines?

Q. Which one of the following command is used for searching for a pattern in one or more file(s)?

Q. Which one of the following is the correct syntax for grep command?