Question 7
Identify the correct system call that should be used at LINE-1 to execute the ls command in the following code:
int pid;pid = fork();if(pid > 0){ pid = wait();}______("ls", "", NULL); //LINE-1exit(0);Identify the correct system call that should be used at LINE-1 to execute the ls command in the following code:
int pid;pid = fork();if(pid > 0){ pid = wait();}______("ls", "", NULL); //LINE-1exit(0);Correct answer
Question 7 of 18 in the IIT Madras BS Operating Systems (Operating Systems) Quiz 2 paper sat on 4 Aug 2024, in the May 2024 term (IIT M IMPROVEMENT AN EXAM QIM4 4 Aug 2024). It carries 2 marks.