What is the output of the program?

#! /usr/bin/awk -f
BEGIN {
a[1]="google"
a[2]="google"
for(i=1;i<3;i++) {
print a[i]
}
}
a) "google" will print 2 times
b) "google" will print 3 times
c) program will generate error becasue 2 array elements have the same value
d) program will generate syntax error

Submitted by: Murtaza
a) "google" will print 2 times
Output:
root@ubuntu:/home/google# ./test.awk
google
google
root@ubuntu:/home/google#
Submitted by: Murtaza

Read Online Awk Programming Job Interview Questions And Answers