NPTEL Operating System Fundamentals Week 5 Assignment Solutions

This set of MCQ(multiple choice questions) focuses on the NPTEL Operating System Fundamentals Week 5 Assignment Solutions.

You should practice these questions to improve Operating System Fundamentals 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 “NPTEL Operating System Fundamentals Week 5 Assignment Solutions“.

Operating System Fundamentals NPTEL 2022 Week 5 Assignment Solutions

Q1. A program has 80% parallel code. If 4 processors are used instead of 1, speedup is

a) 2.0
b) 2.75
c) 3.0
d) None of the other options

Answer: d)

Q2. Which of the following statements is/are NOT true for threads?

a) In one-to-one mapping each user thread has a unique corresponding kernel thread
b) In many-to-many mapping each user thread has a unique corresponding kernel thread
c) Many-to-one mapping has problem of blocking
d) None of the other options

Answer: b)

Q3. Degree of concurrency in threads can be arranged in the manner

a) One-to-one > Many-to-one > Many-to-many
b) One-to-one > Many-to-many > Many-to-one
c) Many-to-many > Many-to-one > One-to-one
d) None of the other options

Answer: c)

Q4. A program has 60% serial code. If 4 processors are used instead of 1, speedup is

a) 1.2
b) 1.4
c) 1.5
d) None of the other options

Answer: b)

Q5. Which of the following is NOT true?

a) Asynchronous cancellation terminated the target thread immediately
b) Asynchronous thread cancellation always free system wide resource that is needed by others
c) Deferred cancellation occurs only after the flag checking by the target thread
d) None of the above

Answer: b)

Operating System Fundamentals NPTEL week 5 Assignment Solutions

Q6. For the following set of processes scheduled using FCFS policy, determine the throughput. Assume that the processes arrived in the order P1, P2, P3, P4.

a) 0.1
b) 0.2
c) 0.3
d) 0.4

Answer: a)

Q7. For the following set of processes scheduled using FCFS policy, determine the average waiting time. Assume that the processes arrived in the order P1, P2, P3, P4.

a) 8
b) 16
c) 32
d) 48

Answer: b)

Operating System Fundamentals NPTEL week 5 Assignment Solutions

Q8. Which of the following is incorrect?

a) Thread local storage (TLS) becomes useful while using a thread pool.
b) TLS allows each of the thread to have its own copy of data.
c) TLS is visible only during single function invocation while local variables are visible across all function invocation
d) None of the above

Answer: c)

Operating System Fundamentals NPTEL week 5 Assignment Solutions

Q9. CPU scheduling decisions may take place when a process:

a) Switches from running state to waiting state
b) Switches from running state to ready state
c) Switches from waiting state to ready state
d) All of the above

Answer: d)

Q10. What scheduling algorithm allows processes that are logical runnable to be temporarily suspended?

a) Pre-emptive scheduling
b) Non pre-emptive scheduling
c) FIFO
d) FCFS

Answer: a)

Operating System Fundamentals NPTEL week 5 Assignment Solutions

Q11. Dispatcher module gives control of the CPU to the process selected by the CPU scheduler; this involves:

a) Switching context
b) Switching to user mode
c) Jumping to the proper location in the user program to restart that program
d) All of the above

Answer: d)

Q12. Which of the following is incorrect about lightweight process (LWP)?

a) Each of the LWP is attached to the kernel thread
b) LWP appears as a virtual processor where process can schedule user thread to run
c) The attached kernel threads are scheduled by the OS to run on physical processors
d) None of the above

Answer: d)


Previous Course – Week 5 Assignment Solutions

Q1. A process can be _________

a. single threaded

b. multithreaded

c. both single threaded and multithreaded

d. none of the mentioned

Ans. c

Q2. According to Amdahl’s Law if the program is 100% serial with infinite number of cores what will be the speedup?

a. 1

b. 0

c. 1.3

d. 1.4

Ans. a 1

Q3. Multithreading on a multi – CPU machine _______

a. decreases concurrency

b. increases concurrency

c. doesn’t affect the concurrency

d. can increase or decrease the concurrency

Ans. b

Q4. Which of the following components of program state are shared across threads in a multithreaded process?

a. Register values

b. Global values

c. Heap memory

d. Both b and c

Ans. D

Q5. Determine the average waiting time for the following set of processes scheduled using FCFS policy. Assume the processes arrived in the order P1, P2, P3, P4, P5.

ProcessBurst Time
P15
P215
P320
P440
P55

a. 3

b. 29

c. 145

d. 5

Ans. b 29

Q6. If degree of multiprogramming is low, then which statement is correct?

a. Then turnaround time and CPU utilization will be low

b. Then waiting time will be high

c. Then the turnaround time will be high

d. None of the above options

Ans. a

Q7. Which algorithm is defined in Time quantum?

a. shortest job scheduling algorithm

b. round robin scheduling algorithm

c. priority scheduling algorithm

d. none of the options

Ans. b

Q8. The interval from the time of submission of a process to the time of completion is termed as?

a. waiting time

b. turnaround time

c. response time

d. throughput

Ans. b

Q9. What is FIFO algorithm?

a. first executes the job that came in last in the queue

b. first executes the job that came in first in the queue

c. first executes the job that needs minimal processor

d. first executes the job that has maximum processor needs

Ans. b

Q10. Which of following is not shared by threads?

a. program counter

b. stack

c. both program counter and stack

d. none

Ans. c)

<< Prev- Operating System Fundamentals Week 4 Assignment Solutions

>> Next- Operating System Fundamentals Week 10 Assignment Solutions


ULTIMATE Graphic Design quiz

170+ Grammar quiz: Beginner’s Level questions

Introduction to Internet of Things nptel assignment solutions

Industrial Automation and Control NPTEL assignment solutions

NPTEL Leadership assignment solutions

Java Programming: Coursera quiz answers

Online Web development Test for Hiring and Recruitment

The above question set contains all the correct answers. But in any case, you find any typographical, grammatical or any other error in our site then kindly inform us. Don’t forget to provide the appropriate URL along with error description. So that we can easily correct it.

Thanks in advance.

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 *