#! /usr/bin/awk -f   BEGIN &#123;       print index&#40;&quot;sanfoundry&quot;,&quot;linux&quot;&#41;   &#125;
A. sanfoundry linux
B. sanfoundry
C. 0
D. none of the mentioned
Answer:A
#! /usr/bin/awk -f   BEGIN &#123;       print index&#40;&quot;sanfoundry&quot;,&quot;linux&quot;&#41;   &#125;
A. sanfoundry linux B. sanfoundry C. 0 D. none of the mentioned
Explanation:The function index() searches the string “sanfoundry” for the first occurence of the string “linux”. The function usually returns the character position but here the string is not found, hence function returns 0.