#! /usr/bin/awk -f   BEGIN &#123;       a&#91;1&#93;=&quot;sanfoundry&quot;       a&#91;2&#93;=&quot;sanfoundry&quot;       for&#40;i=1;i&lt;3;i++&#41; &#123;           print a&#91;i&#93;       &#125;   &#125;
A. “sanfoundry” will print 2 times
B. “sanfoundry” will print 3 times
C. program will generate error becasue 2 array elements have the same value
D. program will generate syntax error
Answer:A
#! /usr/bin/awk -f   BEGIN &#123;       a&#91;1&#93;=&quot;sanfoundry&quot;       a&#91;2&#93;=&quot;sanfoundry&quot;       for&#40;i=1;i&lt;3;i++&#41; &#123;           print a&#91;i&#93;       &#125;   &#125;
A. “sanfoundry” will print 2 times B. “sanfoundry” will print 3 times C. program will generate error becasue 2 array elements have the same value D. program will generate syntax error
Explanation:None.