

McqMate
Q. |
What is the length of sys.argv? |
A. | number of arguments |
B. | number of arguments + 1 |
C. | number of arguments – 1 |
D. | none of the mentioned |
Answer» B. number of arguments + 1 | |
Explanation: the first argument is the name of the program itself. therefore the length of sys.argv is one more than the number arguments. |
View all MCQs in
Problem Solving and Python Programming