Introduction to Operating System | NPTEL | Week 3 Answers

This set of MCQ(multiple choice questions) focuses on the Introduction to Operating System NPTEL Week 3 Answers

You should practice these questions to improve fundamentals of Cyber security needed for various interviews (like company interview, campus interview, walk-in interview), entrance exams, placements and other competitive exams. All the questions in this particular section are based on only “Introduction to Operating System NPTEL Week 3 Answers“.

Course layout

Week 1: Assignment solutions
Week 2:
Assignment solutions
Week 3:
Assignment solutions
Week 4:
Assignment solutions

Week 5: Assignment Solutions
Week 6: Assignment solutions
Week 7: Assignment solutions
Week 8: Assignment solutions
Week 9: Assignment solutions
Week 10: Assignment solutions
Week 11: Assignment solutions
Week 12: Assignment solutions

NOTE: You can check your answer immediately by clicking show answer button. Moreover, this set of Introduction to Operating System NPTEL Week 3 Answers” contains 10 questions.

Now, start attempting the quiz.

Introduction to Operating System NPTEL Week 3 Answers

Q1. Match the following

a) a-4, b-2, c-3, d-1
b) a-3, b-4, c-2, d-1
c) a-4, b-1, c-2, d-3
d) a-3, b-1, c-4, d-2

Answer: d) a-3, b-1, c-4, d-2

Introduction to Operating System NPTEL Week 4 Answers

Q2. We have n number of fork system calls, denoted as nXfork(). What is the total number of process created?

a) n
b) 2^n
c) 2^(n-1)
d) (2^n) – 1

Answer: b) 2^n

Q3. State True/ False
The process whose parent exited before the child is an orphan process. Can a process can be Zombie and Orphan at the same time.

a) True
b) False

Answer: b) False

Q4. What is the output of the following program for any value of  a

a) u=x+5
b) x=u+5
c) x=u+10
d) u=x+10

Answer: d) u=x+10

Introduction to Operating System NPTEL Week 4 Answers

Q5. Which of the below statement is false.

a) Init  is the first process created using booting
b) Init process is a daemon process.
c) Init process have process identifier as 1
d) None of these

Answer: d) None of these

Q6. A student have written a program and used pid = fork()  function call in it. The pid returned by the fork was 5119. Which of the following is true about the process invoking fork?

a) Process is a parent process with pid = 5119
b) Process is a child process. Its Parent’s pid is 5119
c) The process is a parent process. Its Child’s pid is 5119
d) Process is a child process with pid = 5119

Answer: c) The process is a parent process. Its Child’s pid is 5119

Q7. Which of the following is false?

a) Process : Contains code+data+heap+stack+process state
b) Program :  One program can be used to create many processes
c) Process : Process is not a unique isolated entity
d) Program : Code + Static and Global data

Answer: c) Process : Process is not a unique isolated entity

Introduction to Operating System NPTEL Week 4 Answers

Q8. The state transition that occurs due to the scanf system call in the program is ______.
int main(){
    Int a;
          scanf(“%d \n ”, &a);
           exit(0)
         }

a) NEW -> READY
b) READY -> RUNNING
c) RUNNING -> BLOCKED
d) BLOCKED -> READY

Answer: c) RUNNING -> BLOCKED

Q9. Which one of the following is the property of Operating system that helps to prevent attacks?

i)Rings
ii) a separate stack for the kernel
iii)Virtual memory
iv) Shared Libraries

a) i
b) i, ii
c) i, ii, iii
d) i, ii, iii, iv

Answer: b) i, ii

Q10. State True or False.
1. If the parent and the child process share the same page table. Does this mean they share the same page frames in the RAM?
2. COW creates a copy of the shared pages if it changes. All further changes are made in this new page.

a) True, False
b) False, True
c) False, False
d) True, True

Answer: d) True, True

Introduction to Operating System NPTEL Week 4 Answers

Q11. Match the following

a) a-1, b-2, c-3, d-4
b) a-3, b-4, c-2, d-1
c) a-2, b-1, c-4, d-3
d) a-4, b-3, c-1, d-2

Answer: b) a-3, b-4, c-2, d-1

Q12. State True/False
In memory mapping, the entire kernel is mapped into process’ address space, which helps the user process to easily access the kernel data.

a) True
b) False

Answer: b) False

Q13. Arrange the following in order
a. Change state to runnable
b. Copy page directory contents from parent to child process
c. Copy the trapframe from the parent process
d. Change state to embryo

a) a, c, b, d
b) c, d, a, b
c) d, b, c, a
d) a, c, b, d

Answer: c) d, b, c, a

Q14. wait() system call inside the parent process returns the status of the child. What does it returns when it is called inside the child?

a) Returns -1 , when it is not the parent of any other process
b) Returns its own process id
c) Returns the exit status of the parent currently exited.
d) None of these.

Answer: a) Returns -1 , when it is not the parent of any other process

Introduction to Operating System NPTEL Week 4 Answers

Q15. State True/False
execlp() system call replaces the child process with a new program file, but the process ID will not change.

a) True
b) False

Answer: a) True

<< Prev- Introduction to Operating System Week 2 Assignment Solutions

>> Next- Introduction to Operating System Week 4 Assignment Solutions

DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.

Programming in Java NPTEL week 1 quiz answers

Nptel – Deep Learning assignment solutions

For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.

Leave a Comment

Your email address will not be published. Required fields are marked *