MauryaHub PYQ Practice

Operating System · Quiz 2 · May 2024

Operating System · Quiz 2 · May 2024

← Course papers · Start practice / exam

This page contains the reliably extracted subset, not the complete original paper.

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 17 published solutions

Question 32 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q32

Question 33 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q33

Question 34 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q34

Question 35 NAT · 4.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q35

Question 36 MCQ · 2.0 marks

In which scenario is the average response time for FCFS the same as for SJF?
6406532878972.
When all jobs have the same length
6406532878973.
When jobs arrive in increasing order of length
6406532878974.
When jobs arrive in decreasing order of length
6406532878975.
When jobs have widely varying lengths

A published solution is not available for this question yet.

Report a correction for Q36

Question 37 MCQ · 2.0 marks

Source diagram or notation
6406532879008.Source diagram or notation
6406532879009.Source diagram or notation
6406532879010.Source diagram or notation
6406532879011.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q37

Question 38 MCQ · 2.0 marks

Source diagram or notation
6406532879012.Source diagram or notation
6406532879013.Source diagram or notation
6406532879014.Source diagram or notation
6406532879015.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q38

Question 39 MCQ · 2.0 marks

What is the correct sequence of tasks that takes place as part of software interrupt handling? (i) Execute the software interrupt handler (ii) Save the current CPU state (iii) Invoke the kernel scheduler if needed (iv) Restore the CPU state and resume execution
6406532879024.
(i) → (ii) → (iii) → (iv)
6406532879025.
(iii) → (i) → (ii) → (iv)
6406532879026.
(ii) → (iii) → (i) → (iv)
6406532879027.
(ii) → (i) → (iii) → (iv)

A published solution is not available for this question yet.

Report a correction for Q39

Question 40 MCQ · 1.0 marks

State True or False SJF scheduling can lead to starvation of longer jobs if shorter jobs keep arriving.
6406532878976.
TRUE
6406532878977.
FALSE

A published solution is not available for this question yet.

Report a correction for Q40

Question 41 MCQ · 1.0 marks

State True or False SJF can provide a better average response time than FCFS for a set of jobs with varying lengths.
6406532878978.
TRUE
6406532878979.
FALSE

A published solution is not available for this question yet.

Report a correction for Q41

Question 42 MCQ · 1.0 marks

Source diagram or notation
6406532879002.
TRUE
6406532879003.
FALSE

A published solution is not available for this question yet.

Report a correction for Q42

Question 43 MSQ · 3.0 marks

Which of the following are scheduling criteria in an operating system?
6406532878980.
Maximize CPU utilization
6406532878981.
Maximize thoughput
6406532878982.
Maximize response time
6406532878983.
Minimize response time
6406532878984.
Minimize waiting time
6406532878985.
Minimize CPU utilization
6406532878986.
Maximize waiting time

A published solution is not available for this question yet.

Report a correction for Q43

Question 44 MSQ · 3.0 marks

Source diagram or notation
6406532879020.Source diagram or notation
6406532879021.Source diagram or notation
6406532879022.Source diagram or notation
6406532879023.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q44

Question 45 MSQ · 4.0 marks

Source diagram or notation
6406532878987.
40
6406532878988.
60
6406532878989.
50
6406532878990.
30
6406532878991.
70
6406532878992.
80

A published solution is not available for this question yet.

Report a correction for Q45

Question 46 MCQ · 4.0 marks

Source diagram or notation
Which of the following statements about the given processes is correct?
6406532878994.
Process 1 and Process 2 will enter their critical sections simultaneously, leading to race conditions.
6406532878995.
Process 1 will always enter its critical section before Process 2.
6406532878996.
Process 2 will always enter its critical section before Process 1.
6406532878997.
Deadlock can occur if both processes try to enter their critical sections simultaneously.

A published solution is not available for this question yet.

Report a correction for Q46

Question 47 MCQ · 3.0 marks

Assume that two processes P3 and P4 are sharing a resource. If P3 is never able to enter its critical section because P4 keeps entering its critical section repeatedly, then which of the following conditions is not satisfied?
6406532878998.
Mutual exclusion
6406532878999.
Progress
6406532879000.
Bounded waiting
6406532879001.
None of these

A published solution is not available for this question yet.

Report a correction for Q47

Question 48 MCQ · 3.0 marks

Given the hexadecimal view of the first few bytes of different files, identify the executable file (ELF file) from the options below. (Hint: The ASCII value of ’E’ = 69, ’L’ = 76, and ’F’ = 70)
6406532879004.
7f 50 51 52 02 01 01 00
6406532879005.
7f 45 4d 50 02 01 01 00
6406532879006.
7f 41 42 43 02 01 01 00
6406532879007.
7f 45 4c 46 02 01 01 00

A published solution is not available for this question yet.

Report a correction for Q48