Quiz Space

Operating Systems · End Term · 28 Apr 2024 · January 2024 term

Question 9: Choose all the correct statements about the exec system c…

Question 9

+2 marksOne or more correct options

Choose all the correct statements about the exec system call.

Select all that apply.

  1. A

    exec system call creates a new child process for the parent.

  2. B

    exec system call loads the program from a ELF file to the memory.

  3. C

    exec system call can accept command line arguments.

  4. D

    exec system call uses fork system call to load the program.

Show answer

Correct answers

  • B

    exec system call loads the program from a ELF file to the memory.

  • C

    exec system call can accept command line arguments.

Question 9 of 25 in the IIT Madras BS Operating Systems (Operating Systems) End Term paper sat on 28 Apr 2024, in the January 2024 term (IIT M DEGREE AN EXAM QDB3 28 Apr 2024). It carries 2 marks.

More questions from this paper

  1. Q1Consider the code segment (for xv6) given below. What is the base address and the end address of the RX register?
  2. Q2If the memory map of the interrupt controller starts from the offset 0x20000000 and has an address range 128 bytes in a…
  3. Q3Assume that process A (parent) is (voluntarily) trying to create a daemon process B (child). Statement 1: exit system c…
  4. Q4Figure question
  5. Q5Consider the program given below. When buffer2[10] = buffer1[0] occurs, the situation is known as _.
  6. Q6What is the correct sequence of steps that an attacker would do to inject a payload into the stack using buffer overflo…
  7. Q7Select all the incorrect statement(s) about CPU cores in the xv6 Operating System.
  8. Q8Assume process A is waiting for an input, process B is running, and process C was running before process B and is now w…
  9. Q10Assume a trap occurs due to a system call while in usermode. Which of the following functions are not called while hand…
  10. Q11Choose all the correct statements regarding CLV (Constant Linear Velocity).
  11. Q12Consider the size of the virtual memory space is 4 GB, and the size of each page frame is 4 KB. What is the number of e…
  12. Q13Figure question
  13. Q14Consider that the below commands are executed in a shell with root ("/") as the current directory. What is the absolute…
  14. Q15In xv6 operating system, trapframe struct holds the register context of a process when an interrupt occurs.
  15. Q16Match the following
  16. Q17Figure question
  17. Q18Figure question
  18. Q19Consider the scenario given below in which the requests are serviced by C-SCAN disk scheduling algorithm.\ Start: 12, t…
  19. Q20Figure question
  20. Q21For a scenario with 8 philosophers in the dining philosopher’s problem, what is the minimum number of forks necessary t…
  21. Q22Consider the following scenario where two processes are sharing a common variable which is modified in the critical sec…
  22. Q23Consider the following code for allocproc. Assuming no context switch occur during allocproc, which of the return state…
  23. Q24Consider the following functions that are used in the implementation of the Bakery algorithm: The function lock is call…
  24. Q25Figure question