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
πŸ’¬ Discuss
βœ… Correct 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.

Explanation by: Mr. Dubey
the first argument is the name of the program itself. therefore the length of sys.argv is one more than the number arguments.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
93
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate