Interviewer And Interviewee Guide

Awk Programming Interview Question:

What is the output of this program?

#! /usr/bin/awk -f
BEGIN {
var1="google"
var2="linux"
print var1" provides "var2" MCQs "
}
a) google provides linux MCQs
b) var1 provides var2 MCQs
c) provides MCQs
d) syntax error

Submitted by: Murtaza
a) google provides linux MCQs
Output:
root@ubuntu:/home/google# chmod +x test.awk
root@ubuntu:/home/google# ./test.awk
google provides linux MCQs
root@ubuntu:/home/google#
Submitted by: Murtaza

Read Online Awk Programming Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.