⟩ While running DOS on a PC, which command would be used to duplicate the entire diskette?
diskcopy
Java Thread States
diskcopy
Java Thread States
In awk, the built-in variable FS is a) input field seperator b) output field seperator c) record seperator d) subscript seperator
What is FNR? a) FNR is the current record number in the current file b) FNR is the number of fields in the current input record c) FNR is an array contains the value of environment d) none of the mentioned
Which statement skips over the rest of the loop body, causing the next cycle around the loop to begin immediately? a) continue b) break c) next d) none of the mentioned
If the argument is supplied to the exit statement a) its value is used as the exit status code for the awk process b) syntax error will generate c) exit returns status 0 d) exit returns status 1
Which statement instructs gawk to stop processing the current data file? a) next b) nextfile c) exit d) exitfile
The break statement a) jumps out of the innermost for loop b) jumps out of the innermost while loop c) jumps out of the innermost do-while loop d) all of the mentioned
The next statement a) immediately stops processing the current record b) go to the next record c) both (a) and (b) d) none of the mentioned
What is the output of this program? #! /usr/bin/awk -f BEGIN { a=5 while (a<5) { print "google" a++; } } a) nothing will print b) "google" will print 5 times c) program will generate syntax error d) none of the mentioned
What is the output of this program? #! /usr/bin/awk -f BEGIN { a=6 do { print "google" a++ } while (a<5) } a) nothing will print b) "google" will print 5 times c) "google" will print 4 times d) "google" will print only 1 time
What is the output of this program? #! /usr/bin/awk -f BEGIN { for(i=0;i<=5;i++) { print i i++ } } a) 0,2,4 will print b) 1,3,5 will print c) 1,2,3,4,5 will print d) syntax error because i is not initialised