1.

What are positional parameters?(a) special variables for assigning arguments from the command line(b) pattern matching parameters(c) special variables for reading user input(d) special variables and patternsThe question was asked in an international level competition.This interesting question is from Shell Programming using read Command and Command Line Arguments in division Essential Shell Programming of Unix

Answer» CORRECT option is (a) special variables for ASSIGNING arguments from the command line

For explanation: Shell scripts can also take INPUT from command line. When arguments are specified with a shell SCRIPT, they are ASSIGNED to certain special variables called positional parameters.


Discussion

No Comment Found

Related InterviewSolutions