Question 9
What will be displayed when running python app.py 8080 for the following script?
app.py
import sysport = int(sys.argv[1]) if len(sys.argv) > 1 else 5000print(f"Server running on port {port}")What will be displayed when running python app.py 8080 for the following script?
app.py
import sysport = int(sys.argv[1]) if len(sys.argv) > 1 else 5000print(f"Server running on port {port}")Correct answer
Question 9 of 32 in the IIT Madras BS Modern Application Development I (MAD 1) End Term paper sat on 31 Aug 2025, in the May 2025 term (IIT M DIPLOMA FN EXAM QDD1 31 Aug 2025). It carries 3 marks.