TGPSC HMWSSB Manager Operating Systems previous year questions with answers
Every Operating Systems question asked in the TGPSC HMWSSB Manager (Engineering) papers on this site, grouped by topic. Answers come from TSPSC's final key; each has a short explanation (free here for a sample, all of them in the practice app).
Practise Operating Systems onlineProcesses, Threads & CPU Scheduling
In the process state transition diagram, transition from running to ready state indicates that
- the running process is preempted by a higher priority process
- the running process initiated an input/output operation
- the running process is blocked for a semaphore operation
- that the OS is not ready to service the running process
Show answer
Answer: (1) the running process is preempted by a higher priority process
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Which of the following statements is incorrect with regard to operating system design?
- Layered approach is easy to design and debug
- Layered approach is less efficient
- Changes to the kernel tend to be fewer with microkernel approach
- Microkernels are less secure and reliable
Show answer
Answer: (4) Microkernels are less secure and reliable
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
When a process creates a new process using the fork() operation, then which of the following structures are shared between the parent process and the child process?
- Stack
- Heap
- Shared Memory Segments
- Stack, Heap and Shared Memory Segments
Show answer
Answer: (3) Shared Memory Segments
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Which of the following statements is incorrect with respect to threads?
- User-level threads are unknown by the kernel
- Kernel threads are more expensive
- User-level threads are more expensive
- Thread creation uses fewer resources than process creation
Show answer
Answer: (3) User-level threads are more expensive
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Which scheduler controls the degree of multiprogramming?
- Short-term scheduler
- Long-term scheduler
- Middle-term scheduler
- Disk Scheduler
Show answer
Answer: (2) Long-term scheduler
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Listed below are some of the Operating System abstractions and related hardware components:
i. Thread p) Interrupt ii. Virtual Address Space q) Memory iii. File System r) CPU iv. Signal s) Disk Which of the following correctly relates the Operating System abstractions and related hardware components?
- i-p ii-q iii-r iv-s
- i-r ii-s iii-q iv-p
- i-r ii-q iii-s iv-p
- i-r ii-p iii-q iv-s
Show answer
Answer: (3) i-r ii-q iii-s iv-p
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Synchronisation & Deadlocks
Semaphore can be used for ________.
- detecting deadlock
- process synchronization
- process scheduling
- defining priority of the processes
Show answer
Answer: (2) process synchronization
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Let S and Q be two semaphores initialized to 1, where P₀ and P₁ are the processes defined as follows:
Process P₁ Process P₂ wait (S); wait(Q); wait(Q); wait(S); ---; ----; signal(S); signal(Q); signal(Q); signal(S);Which one of the following statements is correct with respect to the above construct?
- Causes starvation
- Causes livelock
- Causes a deadlock
- Does not ensure mutual exclusion
Show answer
Answer: (3) Causes a deadlock
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Memory Management & Virtual Memory
Which of the following techniques can be used to counter the problem of external fragmentation that occurs in dynamic partitioning memory management?
- Compaction
- Segmentation
- Swapping
- Splitting
Show answer
Answer: (1) Compaction
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
The addresses generated by a particular program in a pure demand paging system with 100 records per page and one free main memory frame are as follows 0100, 0200, 0420, 0489, 0510, 0530, 0599, 0120, 0220, 0230, 0260, 0320, 0370 The number of page faults generated in order to execute the program is
- 13
- 8
- 7
- 10
Show answer
Answer: (3) 7
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
Which of the following activities is not done by memory management?
- Keep an account of which parts of memory are currently being used by each of the processes
- Decide which processes are to be brought into memory when memory space becomes available
- Allocate and de-allocate memory space as needed
- Storage allocation
Show answer
Answer: (4) Storage allocation
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.
File Systems & Disk Scheduling
List of objects together with the operations allowed on these objects is called ________.
- Capability list
- access list
- available list
- access matrix
Show answer
Answer: (1) Capability list
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.