Question 1
Heap overflow
Integer overflow
Buffer overflow
Segmentation fault is guaranteed

The IIT Madras BS Operating Systems (Operating Systems) End Term paper sat on 13 Apr 2025, in the January 2025 term, set 1-2: 15 questions for 39 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Heap overflow
Integer overflow
Buffer overflow
Segmentation fault is guaranteed
Correct answer
Buffer overflow
P0, P4, P2, P1, P3
P2, P1, P3, P4, P0
P1, P3, P2, P0, P4
P1, P3, P4, P2, P0
Correct answer
P1, P3, P2, P0, P4
a-1, b-2, c-3
a-2, b-1, c-3
a-3, b-1, c-2
a-2, b-3, c-1
Correct answer
a-3, b-1, c-2
Process A
Process B
Process C
Process init
Correct answer
Process C
If the memory map of the SPI controller starts from the offset 0x40003000 and has an address range of 1024 bytes in a 32-bit addressing scheme, what will be the final address in the memory map of the SPI controller?
0x40003400
0x40003FFF
0x400033FF
0x40003500
Correct answer
0x400033FF
The base address is 0xD200400C, and the end address is 0xD2004010.
The base address is 0xD200400C, and the end address is 0xD2004011.
The base address is 0xD200400C, and the end address is 0xD200400F.
The base address is 0xD2004000, and the end address is 0xD2004004.
Correct answer
The base address is 0xD200400C, and the end address is 0xD200400F.
What is the correct chain of trust as part of securing data in storage using secure boot?
(i) Boot loader starts execution after validation using signature. (ii) Inherently secure component is taken as root of trust. (iii) Signature of rich OS is validated and loaded. (iv) Check the validity of OS image using signature. (v) Signature of trustlet is validated to detect tampering.
(i) → (ii) → (iii) → (iv) → (v)
(i) → (iii) → (ii) → (v) → (iv)
(ii) → (i) → (iv) → (iii)→ (v)
(ii) → (i) → (iv) → (v) → (iii)
Correct answer
(ii) → (i) → (iv) → (v) → (iii)
P1, P2, P3
P2, P3, P1
P3, P2, P1
P1, P3, P2
None of these
Correct answer
P3, P2, P1
Consider the following code snippet.
Consider the following code snippet.
What does the above code do?
The code creates three threads, each printing ”OS End term exam” 60 times,resulting in a total of 180 prints.
The code creates four threads, each printing ”OS End term exam” indefinitelyuntil the program is forcibly terminated.
The code creates four threads, each printing ”OS End term exam” 59 times,resulting in a total of 236 prints.
The code creates four threads, each printing ”OS End term exam” 60 times,resulting in a total of 280 prints.
Correct answer
The code creates four threads, each printing ”OS End term exam” 60 times,resulting in a total of 280 prints.
8 KB
32 KB
4 KB
1 MB
Correct answer
4 KB
Correct answer: 0.8
Consider a disk scheduling scenario where the requests are serviced using the SSTF (Shortest Seek Time First) algorithm. The disk head starts at track 50, and the following track requests arrive:
[45, 70, 35, 55, 48, 85, 60, 40, 30]
What is the total number of head movements required to service all the requests using the SSTF algorithm?
Correct answer: 75
Correct answer: 26
Which of the following statements are true regarding CAV (Constant Angular Velocity) and CLV (Constant Linear Velocity)?
CAV is commonly used in hard disk drives (HDDs).
CLV keeps the spindle speed constant throughout the operation.
CAV results in varying data transfer rates across different tracks.
CLV is primarily used in optical discs like audio CDs.
Correct answers
CAV is commonly used in hard disk drives (HDDs).
CAV results in varying data transfer rates across different tracks.
CLV is primarily used in optical discs like audio CDs.
Which of the following statements correctly describe the different implementations of the Access Control Matrix (ACM) model?
In the Capabilities implementation, each subject maintains a list of objects itcan access along with associated permissions.
The Access Control List (ACL) implementation stores permissions for eachobject rather than for each subject.
Delegation of access rights is easier in the ACL implementation compared tothe Capabilities implementation.
Revocation of access rights is easier in the ACL implementation compared tothe Capabilities implementation.
Correct answers
In the Capabilities implementation, each subject maintains a list of objects itcan access along with associated permissions.
The Access Control List (ACL) implementation stores permissions for eachobject rather than for each subject.
Revocation of access rights is easier in the ACL implementation compared tothe Capabilities implementation.