MauryaHub PYQ Practice

Operating System · End Term · Jan 2024 · AN

Operating System · End Term · Jan 2024 AN

← 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 / 25 published solutions

Question 117 MCQ · 2.0 marks

Source diagram or notation
6406532757157.
The base address is 0xA0004008, and end address is 0xA000400B.
6406532757158.
The base address is 0xA0004008, and end address is 0xA000400C.
6406532757159.
The base address is 0xA0004008, and end address is 0xA0004012.
6406532757160.
The base address is 0xA0004000, and end address is 0xA0004004.

A published solution is not available for this question yet.

Report a correction for Q117

Question 118 MCQ · 2.0 marks

If the memory map of the interrupt controller starts from the offset 0x20000000 and has an address range 128 bytes in a 32-bit addressing scheme then what will be the final address in the memory map?
6406532757161.
0x2000007F
6406532757162.
0x20000080
6406532757163.
0x200001FF
6406532757164.
0x20000200

A published solution is not available for this question yet.

Report a correction for Q118

Question 119 MCQ · 2.0 marks

Assume that process A (parent) is (voluntarily) trying to create a daemon process B (child). **Statement 1:** exit system call must be called by process A. **Statement 2:** wait system call must be called by process B. Choose the correct answer from below.
6406532757179.
Statement 1 is correct but Statement 2 is incorrect
6406532757180.
Statement 2 is correct but Statement 1 is incorrect
6406532757181.
Both statements are correct
6406532757182.
Both statements are incorrect

A published solution is not available for this question yet.

Report a correction for Q119

Question 120 MCQ · 2.0 marks

Source diagram or notation
6406532757228.
uid=0(root), gid=0(root)
6406532757229.
uid=1(root), gid=0(root)
6406532757230.
uid=0(root), gid=1(root)
6406532757231.
uid=1(root), gid=1(root)

A published solution is not available for this question yet.

Report a correction for Q120

Question 121 MCQ · 2.0 marks

Source diagram or notation
6406532757232.
Heap overflow
6406532757233.
Buffer overflow
6406532757234.
Frame overflow
6406532757235.
Stack overflow

A published solution is not available for this question yet.

Report a correction for Q121

Question 122 MCQ · 2.0 marks

What is the correct sequence of steps that an attacker would do to inject a payload into the stack using buffer overflow vulnerabilty? (i) Put machine code in string larger than the buffer (ii) Get machine codes of payload (iii) Find buffer overflow vulnerability in an application (iv) Copy large string into buffer
6406532757236.
(i) → (ii) → (iii) → (iv)
6406532757237.
(i) → (iii) → (iv) → (ii)
6406532757238.
(ii) → (i) → (iv) → (iii)
6406532757239.
(ii) → (iii) → (i) → (iv)

A published solution is not available for this question yet.

Report a correction for Q122

Question 123 MSQ · 2.0 marks

Select all the incorrect statement(s) about CPU cores in the xv6 Operating System.
6406532757165.
The main function is executed by all CPU cores, and all cores follow the same execution path.
6406532757166.
The main function is executed by all CPU cores, but Core 0 follows a different execution path than the other cores.
6406532757167.
All cores execute the main function simultaneously.
6406532757168.
The other cores wait until Core 0 finishes setting up the main function before continuing their initialization.

A published solution is not available for this question yet.

Report a correction for Q123

Question 124 MSQ · 2.0 marks

Assume process A is waiting for an input, process B is running, and process C was running before process B and is now waiting for its turn to run. Select all the correct statements from below.
6406532757175.
A is in RUNNABLE state
6406532757176.
A is in SLEEPING state
6406532757177.
C is in RUNNABLE state
6406532757178.
C is in SLEEPING state

A published solution is not available for this question yet.

Report a correction for Q124

Question 125 MSQ · 2.0 marks

Choose all the correct statements about the **exec** system call.
6406532757188.
**exec** system call creates a new child process for the parent.
6406532757189.
**exec** system call loads the program from a **ELF** file to the memory.
6406532757190.
**exec** system call can accept command line arguments.
6406532757191.
**exec** system call uses **fork** system call to load the program.

A published solution is not available for this question yet.

Report a correction for Q125

Question 126 MSQ · 2.0 marks

Assume a trap occurs due to a system call while in usermode. Which of the following functions are not called while handling the trap?
6406532757196.
devintr
6406532757197.
swtch
6406532757198.
uservec
6406532757199.
userret

A published solution is not available for this question yet.

Report a correction for Q126

Question 127 MSQ · 2.0 marks

Choose all the correct statements regarding CLV (Constant Linear Velocity).
6406532757224.
In CLV, Spindle speed (rpm) varies depending on the position of the head.
6406532757225.
It is harder to engineer than CAV.
6406532757226.
It allows varying read rates.
6406532757227.
It is used in hard disks.

A published solution is not available for this question yet.

Report a correction for Q127

Question 128 MCQ · 3.0 marks

Consider 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 entries in the page table?
6406532757169.
2\(^{20}\) Bytes
6406532757170.
2\(^{10}\) Bytes
6406532757171.
2\(^{30}\) Bytes
6406532757172.
None of these

A published solution is not available for this question yet.

Report a correction for Q128

Question 129 MCQ · 3.0 marks

Source diagram or notation
6406532757210.
Yes, involving P1, P2 and P3.
6406532757211.
No, there is no deadlock situation.
6406532757212.
Yes, involving P1 and P2.
6406532757213.
Yes, involving P2 and P3.

A published solution is not available for this question yet.

Report a correction for Q129

Question 130 MCQ · 3.0 marks

Source diagram or notation
6406532757215.Source diagram or notation
6406532757216.Source diagram or notation
6406532757217.Source diagram or notation
6406532757218.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q130

Question 131 MCQ · 1.0 marks

In xv6 operating system, **trapframe** struct holds the register context of a process when an interrupt occurs.
6406532757173.
TRUE
6406532757174.
FALSE

A published solution is not available for this question yet.

Report a correction for Q131

Question 132 MCQ · 1.0 marks

Match the following
Source diagram or notation
6406532757192.
1 - b, 2 - a, 3 - c
6406532757193.
1 - c, 2 - b, 3 - a
6406532757194.
1 - b, 2 - c, 3 - a
6406532757195.
1 - c, 2 - a, 3 - b

A published solution is not available for this question yet.

Report a correction for Q132

Question 133 NAT · 1.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q133

Question 134 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q134

Question 135 NAT · 3.0 marks

Consider the scenario given below in which the requests are serviced by C-SCAN disk scheduling algorithm. Start: 12, tracks requested: [11, 0, 3, 4, 14, 8, 17, 9, 1]. Assume there are only 21 tracks in the disk numbered from 0 to 20. What is the total number of head movements required to service all the requests using the C- SCAN algorithm?

A published solution is not available for this question yet.

Report a correction for Q135

Question 136 NAT · 2.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q136

Question 137 NAT · 2.0 marks

For a scenario with 8 philosophers in the dining philosopher’s problem, what is the minimum number of forks necessary to ensure deadlock prevention?

A published solution is not available for this question yet.

Report a correction for Q137

Question 138 MSQ · 4.0 marks

Source diagram or notation
6406532757202.
It achieves mutual exclusion.
6406532757203.
It can cause deadlock.
6406532757204.
Process 2 can enter the critical section multiple times before a context switch if Process 1 is in remainder section.
6406532757205.
Process 2 can enter the critical section multiple times before a context switch if Process 1 is waiting to enter the critical section.

A published solution is not available for this question yet.

Report a correction for Q138

Question 139 MCQ · 4.0 marks

Source diagram or notation
6406532757183.
line 14
6406532757184.
line 23
6406532757185.
line 30
6406532757186.
line 37

A published solution is not available for this question yet.

Report a correction for Q139

Question 140 MCQ · 4.0 marks

Source diagram or notation
6406532757206.
P0, P3, P1, P2
6406532757207.
P0, P2, P1, P3
6406532757208.
P2, P1, P3
6406532757209.
P1, P3, P2

A published solution is not available for this question yet.

Report a correction for Q140

Question 141 MCQ · 4.0 marks

Source diagram or notation
6406532757219.
(1) - C-SCAN, (2) - FCFS, (3) - SSTF, (4) - C-LOOK
6406532757220.
(1) - C-LOOK, (2) - FCFS, (3) - C-SCAN, (4) - SSTF
6406532757221.
(1) - C-SCAN, (2) - SSTF, (3) - FCFS, (4) - C-LOOK
6406532757222.
(1) - C-SCAN, (2) - C-LOOK, (3) - SSTF, (4) - FCFS       **LLM** **Section Id :** 64065357858 **Section Number :** 7 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 12 **Number of Questions to be attempted :** 12 **Section Marks :** 50 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q141