Question
for($i=0;$i<3;$i++){ }
a.
True
b.
False
c.
May be
d.
Can't say
Posted under UNIX
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.
View solution
Q. ___ function is used for joining lists.
View solution
Q. perl is ____ of grep, tr, sed and awk.
View solution
Q. The following will display :
perl -e ‘print “UNIX” x 10 . “\n” ;’
View solution
Q. Filter’s are a category of commands that take the advantage of shell redirection feature.
View solution
Q. Which command is used for preparing a file for printing?
View solution
Q. pr command adds ____ lines of margin at the top and bottom.
View solution
Q. Which option is used with pr command for printing multi-columnar output?
View solution
Q. Which option is used with pr command to suppress the header and footers?
View solution
Q. Which option is used with the tail command for extracting bytes instead of lines?
View solution
Q. paste command uses space as the default field delimiter.
View solution
Q. _____ option is used with paste command if we want to specify our own delimiter.
View solution
Q. Which option is used with paste command for joining lines?
View solution
Q. ____ command is used for sorting a file on specified fields.
View solution
Q. The name of the input and output files cannot be same while using sort command.
View solution
Q. Which command is used for locating repeated and non-repeated lines?
View solution
Q. uniq command requires a sorted file as input.
View solution
Q. Which option is used with uniq command for selecting non-repeated lines?
View solution
Q. Which one of the following command is used for searching for a pattern in one or more file(s)?
View solution
Q. Which one of the following is the correct syntax for grep command?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!