1.

What is the value stored in sys.argv[0]?(a) null(b) you cannot access it(c) the program’s name(d) the first argumentThis question was addressed to me by my college professor while I was bunking the class.This question is from Argument Parsing 2 in portion Argument Passing, Global vs Local Variables, Shallow copy vs Deep copy and Recursion of Python

Answer»

The CORRECT ANSWER is (c) the program’s name

Explanation: REFER documentation.



Discussion

No Comment Found

Related InterviewSolutions