Question 8
If the exec system call is invoked as exec("/analyze", "data.txt", "config.json", "log.txt", "result.out");, then what are the values of the argc and argv[3] respectively?
4, "config.json"
5, "data.txt"
5, "log.txt"
4, "result.out"
If the exec system call is invoked as exec("/analyze", "data.txt", "config.json", "log.txt", "result.out");, then what are the values of the argc and argv[3] respectively?
4, "config.json"
5, "data.txt"
5, "log.txt"
4, "result.out"
Correct answer
5, "log.txt"
Question 8 of 17 in the IIT Madras BS Operating Systems (Operating Systems) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term (OS 06 Apr 26). It carries 2 marks.