Awk Programming Question:
Download Questions PDF

The comparison expression "x ~ y" will true if:
a) x is not equal to y
b) the string x does not match the regular expression denoted by y
c) the string x matches the regular expression denoted by y
d) none of the mentioned

Answer:

c) the string x matches the regular expression denoted by y

Download Awk Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What is the output of this program?

#! /usr/bin/awk -f
BEGIN {
a=10;
b=10;
print a==b ? "true":"false"
}
a) true
b) false
c) syntax error
d) none of the mentioned
What is the output of this program?

#! /usr/bin/awk -f
BEGIN {
print "20"<"9" ? "true":"false"
}
a) true
b) false
c) syntax error
d) none of the mentioned